676
Chapter 14: Properties
-- 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 (Member)
,
stream()
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)
,
state (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
index
positions. You can set the
rect (camera)
property of each
camera to display multiple views within the sprite.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...