User Guide

Chapter 3110
bufferSize
Syntax
member(whichFlashMember).bufferSize
the bufferSize of member whichFlashMember
Description
Flash cast member property; controls how many bytes of a linked Flash movie are streamed into
memory at one time. The bufferSize member property can have only integer values. This
property has an effect only when the cast members
preload property is set to FALSE.
This property can be tested and set. The default value is 32,768 bytes.
Example
This startMovie handler sets up a Flash movie cast member for streaming and then sets its
bufferSize property.
Dot syntax:
on startMovie
member.("Flash Demo").preload = FALSE
member.("Flash Demo").bufferSize = 65536
end
Verbose syntax:
on startMovie
set the preload of member "Flash Demo" = FALSE
set the bufferSize of member "Flash Demo" = 65536
end
See also
bytesStreamed, preLoadRAM, stream, streamMode
build()
Syntax
member(whichCastmember).modelResource(whichModelResource).build()
Description
3D mesh command; constructs a mesh. This command is only used with model resources whose
type is
#mesh.
You must use the
build() command in the initial construction of the mesh, after changing any
of the
face properties of the mesh, and after using the generateNormals() command.
Example
This example creates a simple model resource whose type is #mesh, specifies its properties, and
then creates a new model using the model resource. The process is outlined in the following line-
by-line explanation of the example code:
Line 1 creates a mesh called Plane, which has one face, three vertices, and a maximum of three
colors. The number of normals and the number of texture coordinates are not set. The normals
are created by the
generateNormals command.
Line 2 defines the vectors that will be used as the vertices for Plane.
Line 3 assigns the vectors to the vertices of the first face of Plane.