### state

Syntax: | `the state of member` `whichFlashMember`
Type: | Cast member property
Description: | This property indicates the streaming state of a Flash movie cast member. It returns a valid value only when the Director movie is running. The state of member property can have these integer values:

| `0` The cast member is not in memory.
| `1` The header is currently loading.
| `2` The header has finished loading.
| `3` The cast member's media is currently loading.
| `4` The cast member's media has finished loading.
| `-1` An error occurred.

| The `state 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 reports in the Message window the current state of the cast member. 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
    		put "Current download state:" && ¬
    			the state of member "Intro Movie"
    		go to the frame
    	end if
    end

Related Lingo: | `clearError` property, `getError` function

Previous | Next