MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 676

Director scripting reference
Table of Contents

Advertisement

-- Lingo syntax
on fetchMovie(whichFlashMovie)
repeat while member(whichFlashMovie).percentStreamed < 100
stream(member(whichFlashMovie))
put("Number of bytes streamed:" && member(whichFlashMovie).bytesStreamed)
end repeat
end
// JavaScript syntax
function fetchMovie(whichFlashMovie)
var i = member(whichFlashMovie).percentStreamed;
while(i < 100) {
stream(member(whichFlashMovie));
trace( "Number of bytes streamed: " +
member(whichFlashMovie).bytesStreamed);
}
}
See also
bufferSize,
percentStreamed
bytesStreamed (3D)
Usage
member(whichCastMember).bytesStreamed
Description
3D cast member property; indicates how much of the initial file import or the last requested file
load has loaded.
Example
This statement shows that 325,300 bytes of the cast member named Scene have been loaded.
put member("Scene").bytesStreamed
-- 325300
See also
streamSize
(3D),
camera
Usage
member(whichCastMember).camera(whichCamera)
member(whichCastMember).camera[index]
member(whichCastMember).camera(whichCamera).whichCameraProperty
member(whichCastMember).camera[index].whichCameraProperty
sprite(whichSprite).camera{(index)}
sprite(whichSprite).camera{(index)}.whichCameraProperty
Description
3D element; an object at a vector position from which the 3D world is viewed.
Each sprite has a list of cameras. The view from each camera in the list is displayed on top of the
view from camera with lower
camera to display multiple views within the sprite.
676
Chapter 14: Properties
(Member),
state (3D)
positions. You can set the
index
stream()
rect (camera)
property of each

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Director mx 2004

Table of Contents