Loading display content dynamically

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

  • A project authored in Haxe—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 project—This is a project written in Haxe 1.0 or 2.0. (supported only in Flash Player)

You load these assets by using the Loader class.

Section Contents

results matching ""

    No results matching ""