User Guide

640
streamSize
Syntax
member(whichFlashMember).streamSize
the streamSize of member whichFlashMember
Description
Cast member property; reports an integer value indicating the total number of bytes in the stream
for the specified cast member. The streamSize property returns a value only when the Director
movie is playing.
This property can be tested but not set.
Example
The following frame script checks to see if a Flash movie cast member named Intro Movie has
finished streaming into memory. If it hasnt, the script updates a field cast member to indicate the
number of bytes that have been streamed (using the
bytesStreamed member property) and the
total number of bytes for the cast member (using the
streamSize member property). The script
keeps the playhead looping in the current frame until the movie finishes loading into memory.
on exitFrame
if member("Intro Movie").percentStreamed < 100 then
member("Message Line").text = string(member("Intro Movie").bytesStreamed) \
&& "of" && string(member("Intro Movie").streamSize) \
&&"bytes have downloaded so far."
go to the frame
end if
end
streamSize (3D)
Syntax
member(whichCastmember).streamSize
Description
3D property; allows you to get the size of the data stream to be downloaded, from 0 to
maxInteger. This command refers to the initial file import or the last
loadFile() requested.
Example
This statement shows that the last file load associated with the cast member Scene has a total size
of 325300 bytes:
put member("Scene").streamSize
-- 325300
See also
bytesStreamed (3D), percentStreamed (3D), state (3D), preLoad (3D)