ActionScript 3.0 Container Object

Navigation - Site Root :: Tutorial Home
Basics - Hello World :: Text IO :: Calculator :: If Statement
Games - Mouse Tracker :: Ball Bounce :: Maze :: Pong :: Ajax Style Demo
Techniques - Container Objects

Sprites

Sprites can be used as containers. This example creates a sprite at run-time and inside the sprite two text fields are created. The sprite is animated and the contents of the sprite (the text) gets animated too. This technique can be used to re-size visible elements on your stage.

Managing Code

This example uses code in a more than one file. Click to view/download ...

myContainer.as
ContainerObjectExample.fla
ContainerObjectExample.swf