Lingo Dictionary > S > streamMode |  |

streamMode

Syntax

    member(whichFlashMember).streamMode
    the streamMode of member whichFlashMember

Description

Flash cast member property; controls the way a linked Flash movie cast member is streamed into memory, as follows:

| `#frame (`default`)—`Streams part of the cast member each time the Director frame advances while the sprite is on the Stage.
| `#idle—`Streams part of the cast member each time an idle event is generated or at least once per Director frame while the sprite is on the Stage.
| `#manual—`Streams part of the cast member into memory only when the `stream` command is issued for that cast member.

This property can be tested and set.

Example

This `startMovie` script searches the internal cast for Flash movie cast members and sets their `streamMode` properties to `#manual`:

    on startMovie
    	repeat with i = 1 to the number of members of castLib 1
    		if member(i, 1).type = #flash then
    			member(i, 1).streamMode = #manual
    		end if
    	end repeat
    end