User Guide

Lingo Dictionary 111
Line 4 defines the three colors allowed by the newMesh command.
Line 5 assigns the colors to the first face of Plane. The third color in the color list is applied to the
first vertex of Plane, the second color to the second vertex, and the first color to the third vertex.
The colors will spread across the first face of Plane in gradients.
Line 6 creates the normals of Plane with the
generateNormals() command.
Line 7 calls the
build() command to construct the mesh.
nm = member("Shapes").newMesh("Plane",1,3,0,3,0)
nm.vertexList = [vector(0,0,0), vector(20,0,0), vector(20, 20, 0)]
nm.face[1].vertices = [1,2,3]
nm.colorList = [rgb(255,255,0), rgb(0, 255, 0), rgb(0,0,255)]
nm.face[1].colors = [3,2,1]
nm.generateNormals(#smooth)
nm.build()
nm = member("Shapes").newModel("TriModel", nm)
See also
generateNormals(), newMesh, face
buttonsEnabled
Syntax
sprite(whichFlashSprite).buttonsEnabled
the buttonsEnabled of sprite whichFlashSprite
member(whichFlashMember).buttonsEnabled
the buttonsEnabled of member whichFlashMember
Description
Flash cast member property and sprite property; controls whether the buttons in a Flash movie
are active (
TRUE, default) or inactive (FALSE). Button actions are triggered only when the
actionsEnabled property is set to TRUE.
This property can be tested and set.
Example
This handler accepts a sprite reference and toggles the sprites buttonsEnabled property on or off.
Dot syntax:
on ToggleButtons whichSprite
sprite(whichSprite).buttonsEnabled = not sprite(whichSprite).buttonsEnabled
end
Verbose syntax:
on ToggleButtons whichSprite
set the buttonsEnabled of sprite whichSprite = not the buttonsEnabled of \
sprite whichSprite
end
See also
actionsEnabled