MovieManagerEvent
Kind of class: | public class |
---|---|
Package: | |
Inherits from: |
|
Dispatched by: | |
Classpath: | org.asaplibrary.management.movie.MovieManagerEvent |
File last modified: | Wednesday, 11 May 2011, 18:42:45 |
Event object sent by MovieManager. Subscribe to type
_EVENT
.
Example
-
MovieManager.getInstance().addEventListener( MovieManagerEvent._EVENT, onMovieEvent );
Listen for movie events:protected function onMovieEvent (e:MovieManagerEvent) { if (e.subtype == MovieManagerEvent.MOVIE_READY) { showMovie(e.controller); } } protected function showMovie (inController:ILocalController) : void { var lc:LocalController = inController as LocalController; // etcetera }
Summary
Constructor
-
MovieManagerEvent
(inSubtype:String, inName:String, inController:ILocalController = null, inContainer:DisplayObject = null, inError:String = null)
- Creates a new MovieManagerEvent.
Constants
-
_EVENT
: String
- Event type.
-
MOVIE_LOADED
: String
- Event subtype sent when the SWF asset has been loaded.
-
CONTROLLER_INITIALIZED
: String
- Event subtype sent when the LocalController has been registered to the MovieManager.
-
MOVIE_READY
: String
- Event subtype sent when the LocalController is ready to start.
-
ERROR
: String
- Event subtype sent on loading error.
Instance properties
- subtype : String
- name : String
- controller : ILocalController
- container : DisplayObject
- error : String
Constructor
MovieManagerEvent
function MovieManagerEvent(inSubtype:String,
inName:String,
inController:ILocalController = null,
inContainer:DisplayObject = null,
inError:String = null)
Creates a new MovieManagerEvent.
Parameters
inSubtype :either subtype; see above
inName :name of the ILocalController
inController:(optional) reference to the ILocalController (if any)
inContainer :(optional) the hosting container (if any)
inError :(optional) AssetLoaderEvent error (if any)
Constants
CONTROLLER_INITIALIZED
static const CONTROLLER_INITIALIZED:String = "controllerInitialized"
Event subtype sent when the LocalController has been registered to the MovieManager.
ERROR
static const ERROR:String = "error"
Event subtype sent on loading error.
MOVIE_LOADED
static const MOVIE_LOADED:String = "movieLoaded"
Event subtype sent when the SWF asset has been loaded.
MOVIE_READY
static const MOVIE_READY:String = "movieReady"
Event subtype sent when the LocalController is ready to start.
_EVENT
static const _EVENT:String = "onMovieManagerEvent"
Event type.
Instance properties
container
container:DisplayObject(read,write)
controller
controller:ILocalController(read,write)
error
error:String(read,write)
name
name:String(read,write)
subtype
subtype:String(read,write)
Instance methods
clone
override function clone() : Event
Creates a copy of an existing MovieManagerEvent.
Overrides
- Event.clone
toString
override function toString() : String
Overrides
- Event.toString