stage (Flash Sprite property)

Usage

-- Lingo syntax 
spriteObjRef.stage 
 
// JavaScript syntax 
spriteObjRef.stage;

Description

This method returns teh root display object (stage object) of the given Flash movie. Using the properties and methods of the flash.display.DisplayObjectContainer on the stage object, you can navigate through the display list of the Flash sprite.

Example

The following code prints the name of the first child of the stage of the Flash sprite AS3wf:

-- Lingo syntax 
p ut( sprite("AS3Swf").stage.getChildAt(0).name ) 
// JavaScript syntax 
put( sprite("AS3Swf").stage.getChildAt(0).name );