Loading display content dynamically

You can load any of the following external display assets into an ActionScript 3.0 application:

  • A SWF file authored in ActionScript 3.0—This file can be a Sprite, MovieClip, or any class that extends Sprite.

  • An image file—This includes JPG, PNG, and GIF files.

  • An AVM1 SWF file—This is a SWF file written in ActionScript 1.0 or 2.0.

You load these assets by using the Loader class.