LocalController

Kind of class: public class
Package:
Inherits from:
  • MovieClip
Implements:
Classpath: org.asaplibrary.management.movie.LocalController
File last modified: Wednesday, 11 May 2011, 18:42:29
(Virtual) base class for controlling movies locally, either independently or embedded. Extend this class for each separate movie in your project that requires certain complex controlled functionality. The base class takes care of communication with the MovieManager, so the movie is known to other movies. The LocalController functions as controller for everything that happens locally. For other movies, it functions as a Facade, hiding implementation of details. The preferred mode of communication with the LocalController is through events, to avoid having to know the actual specific interface.

Summary

Constructor
Class properties
  • globalStage : Stage
    • Provide global access to the one and only stage
Instance methods

Constructor

LocalController

function LocalController()

Creates a new LocalController.

Parameters
inName:(optional) unique identifying name

Class properties

globalStage

static globalStage:Stage(read,write)

Provide global access to the one and only stage

Instance methods

die

function die() : void

/ public function startMovie() : void { play(); } public function stopMovie() : void { stop(); } / To be implemented by subclasses.

getName

function getName() : String
Returns
  • The name of the LocalController.

isStandalone

function isStandalone() : Boolean
Returns
  • True if the LocalController is the Document class.

setName

function setName(inName:String) : void

Sets the name of the LocalController

Parameters
inName:new name of the controller