Packagenet.guttershark.util
Classpublic final class FlashLibrary
InheritanceFlashLibrary Inheritance flash.utils.Proxy

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 Methods
 MethodDefined by
  
bitmap(classIdentifier:String):Bitmap
Get an item in the library as a Bitmap.
FlashLibrary
  
font(classIdentifier:String):Font
Get an item in the library as a Font.
FlashLibrary
  
[static] Singleton access
FlashLibrary
  
klass(classIdentifier:String):Class
Get a Class reference to a definition in the movie.
FlashLibrary
  
movieclip(classIdentifier:String):MovieClip
Get an item in the library as a MovieClip.
FlashLibrary
  
sound(classIdentifier:String):Sound
Get an item in the library as a Sound.
FlashLibrary
  
sprite(classIdentifier:String):Sprite
Get an item in the library as a Sprite.
FlashLibrary
Method detail
bitmap()method
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
Bitmap
font()method 
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
Font
gi()method 
public static function gi():FlashLibrary

Singleton access

Returns
FlashLibrary
klass()method 
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
Class
movieclip()method 
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
MovieClip
sound()method 
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
Sound
sprite()method 
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
Sprite