Lingo Dictionary > A-C > bytesStreamed |
![]() ![]() ![]() |
bytesStreamed
Syntax
member(
whichFlashOrSWAMember
)
.
bytesStreamed
the bytesStreamed of member
whichFlashOrSWAMember
Description
Flash and Shockwave Audio cast member property; indicates the number of bytes of the specified cast member that have been loaded into memory. The bytesStreamed
property returns a value only when the Director movie is playing. It returns an integer value.
This property can be tested but not set.
Example
This handler accepts a cast member reference as a parameter, and it then uses the stream
command to load the cast member into memory. Every time it streams part of the cast member into memory, it uses the bytesStreamed
property to report in the Message window how many bytes have been streamed.
Dot syntax:
on fetchMovie whichFlashMovie repeat while member(whichFlashMovie).percentStreamed < 100 stream(member whichFlashMovie) put "Number of bytes streamed:" && member(whichFlashMovie).bytesStreamed end repeat end
Verbose syntax:
on fetchMovie whichFlashMovie repeat while the percentStreamed of member whichFlashMovie < 100 stream(member whichFlashMovie) put "Number of bytes streamed:" && the bytesStreamed of member \ whichFlashMovie end repeat end
See also
bufferSize
, bytesStreamed
, percentStreamed
, stream
![]() ![]() ![]() |