Syntax: | the streamSize of member whichFlashMember |
Type: | Cast member property |
Description: | This property indicates the total number of bytes currently in the stream for the specified cast member. The streamSize property returns a value only when the Director movie is playing. It returns an integer value. |
The streamSize of member property can be tested but not set.
|
|
Example: | This frame script checks to see if a Flash movie cast member named "Intro Movie" has finished streaming into memory. If it hasn't, the script updates a field cast member to display how many bytes have been streamed (using the bytesStreamed of member property) and the total number of bytes for the cast member (using the streamSize of member property). The script keeps the playback head looping in the current frame until the movie finishes loading into memory. |
on exitFrame if the percentStreamed of member "Intro Movie" < 100 then set the text of member "Message Line" = ¬ string(the bytesStreamed of member "Intro Movie") && ¬ "of" && string(the streamSize of member "Intro Movie") &&¬ "bytes have downloaded so far." go to the frame end if end |
|
![]() |