The FlashLibrary class simplifies getting items from the
Flash Library at runtime, and provides shortcuts for common
types of assets you need to get out of the library.
public function bitmap(classIdentifier:String):Bitmap
Get an item in the library as a Bitmap.
Parameters
| classIdentifier:String — The name of the item in the library.
|
Returns
public function font(classIdentifier:String):Font
Get an item in the library as a Font.
Parameters
| classIdentifier:String — The name of the item in the library.
|
Returns
public static function gi():FlashLibrary
Singleton access
Returns
public function klass(classIdentifier:String):Class
Get a Class reference to a definition in the movie.
Parameters
| classIdentifier:String — The item name in the library.
|
Returns
public function movieclip(classIdentifier:String):MovieClip
Get an item in the library as a MovieClip.
Parameters
| classIdentifier:String — The name of the item in the library.
|
Returns
public function sound(classIdentifier:String):Sound
Get an item in the library as a Sound.
Parameters
| classIdentifier:String — The name of the item in the library.
|
Returns
public function sprite(classIdentifier:String):Sprite
Get an item in the library as a Sprite.
Parameters
| classIdentifier:String — The name of the item in the library.
|
Returns