For linked Flash cast members, the
the cast member's header has finished loading into memory.
This property can be tested but not set.
Example
This sprite script resizes a Flash movie sprite so that it is equal to the original size of its Flash
movie cast member:
-- Lingo syntax
property spriteNum
on beginSprite me
sprite(spriteNum).rect = sprite(spriteNum).member.FlashRect
end
// JavaScript syntax
function beginSprite() {
sprite(this.spriteNum).rect = sprite(this.spriteNum).member.FlashRect;
}
See also
defaultRect, defaultRectMode,
flat
Usage
member(whichCastmember).shader(whichShader).flat
member(whichCastmember).model(whichModel).shader.flat
member(whichCastmember).model(whichModel).shaderList{[index]}.flat
Description
3D
shader property; indicates whether the mesh should be rendered with flat shading
#standard
(
) or Gouraud shading (
TRUE
Flat shading uses one color per face of the mesh. The color used for the face is the color of its first
vertex. Flat shading is faster than Gouraud shading.
Gouraud shading assigns a color to each vertex of a face and interpolates the colors across the
face in a gradient. Gouraud shading requires more time and calculation, but creates a smoother
surface.
The default value for this property is
Example
The following statement sets the
model that uses this shader will be rendered with one color per face.
member("MysteryWorld").shader("Wall").flat = TRUE
See also
mesh
(property), colors, vertices,
776
Chapter 14: Properties
member property returns a valid value only when
FlashRect
state (Flash, SWA)
).
FALSE
.
FALSE
property of the shader named Wall to
flat
generateNormals()
. The mesh of a
TRUE
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers