Packagecom.rockonflash.papervision3d.utils
Classpublic class SWFManager
InheritanceSWFManager Inheritance flash.events.EventDispatcher

SWFManager is a singleton which makes the loading and accessing loaded SWF's very easy to deal with.



Public Methods
 MethodDefined by
  
SWFManager(target:IEventDispatcher = null)
SWFManager
  
[static]
SWFManager
  
getMC(name:String):MovieClip
SWFManager
  
getSWFObject(name:String):SWFObject
SWFManager
  
loadObject(name:String, url:String, target:Sprite):void
SWFManager
Public Constants
 ConstantDefined by
  OBJECT_LOAD_COMPLETE : String = "objectLoadComplete"
[static] The SWFManager.OBJECT_LOAD_COMPLETE constant defines the value of the type property of the event object for a objectLoadComplete event.
SWFManager
Constructor detail
SWFManager()constructor
public function SWFManager(target:IEventDispatcher = null)Parameters
target:IEventDispatcher (default = null)
Method detail
getInstance()method
public static function getInstance():SWFManager

Returns
SWFManager
getMC()method 
public function getMC(name:String):MovieClip

Parameters
name:String — Friendly name you provided when using loadObject()

Returns
MovieClip — MovieClip This is the actual MovieClip reference
getSWFObject()method 
public function getSWFObject(name:String):SWFObject

Parameters
name:String — String identifier. Provided when you originally called loadObject()

Returns
SWFObject — SWFObject
loadObject()method 
public function loadObject(name:String, url:String, target:Sprite):void

Parameters
name:String — The friendly name you'll use to access it via the SWFManager.getMC()
 
url:String — The location of the SWF file
 
target:Sprite — Where you want this SWF attached once it's loaded
Constant detail
OBJECT_LOAD_COMPLETEconstant
public static const OBJECT_LOAD_COMPLETE:String = "objectLoadComplete"

The SWFManager.OBJECT_LOAD_COMPLETE constant defines the value of the type property of the event object for a objectLoadComplete event.

The properties of the event object have the following values:

typeString
idString
mcMovieClip
bubblesBoolean
cancelableBoolean