Package | artcustomer.framework.context |
Class | public class BaseContext |
Inheritance | BaseContext ServiceContext CrossPlatformInputsContext InteractiveContext EventContext Object |
Subclasses | FlashContext |
Method | Defined By | ||
---|---|---|---|
Constructor
| BaseContext | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Add an eventListener. | EventContext | ||
allowDomain(... rest):void
Allow a domain in application. | ServiceContext | ||
allowInsecureDomain(... rest):void
Allow an insecure domain in application. | ServiceContext | ||
destroy():void [override]
Destroy the context. | BaseContext | ||
dispatchEvent(e:Event):Boolean
Dispatch an event. | EventContext | ||
dumpParameters():String
Get properties and values of Flash parameters in String format. | ServiceContext | ||
exitPlayer(code:uint = 0):void
Exit Flash Player. | ServiceContext | ||
getParameter(name:String):Object
Get Flash parameter by name. | ServiceContext | ||
hasEventListener(type:String):Boolean
Test an eventlistener. | EventContext | ||
hideLogo():void
Hide Framework logo. | InteractiveContext | ||
hideMenu():void
Hide Framework context menu. | InteractiveContext | ||
infos():String
Get Debug version of Player. | BaseContext | ||
loadPolicyFile(url:String):void
Load policy file (XML Crossdomain). | ServiceContext | ||
move(x:int = 0, y:int = 0):void
Move the context view. | InteractiveContext | ||
moveLogo(align:String, verticalMargin:int = 0, horizontalMargin:int = 0):void
Move Framework logo. | InteractiveContext | ||
pausePlayer():void
Pause Flash Player
| ServiceContext | ||
refreshView():void
Refresh the context view. | InteractiveContext | ||
releaseMemory():void
Force the garbage collection process. | ServiceContext | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove an eventlistener. | EventContext | ||
reset():void
Reset the context. | BaseContext | ||
resumePlayer():void
Resume Flash Player
| ServiceContext | ||
setup():void [override]
Setup the context. | BaseContext | ||
showLogo():void
Show Framework logo. | InteractiveContext | ||
showMenu():void
Show Framework context menu. | InteractiveContext | ||
throwCustomError(error:Class, message:*, id:* = 0):void
Throw a custom Error. | BaseContext | ||
throwError(message:*, id:* = 0):void
Throw an Error. | BaseContext | ||
toggleFullScreen():void
Switch Normal / FullScreen mode
| InteractiveContext | ||
willTrigger(type:String):Boolean
Test event trigger. | EventContext |
Method | Defined By | ||
---|---|---|---|
focus():void
When FlashPlayer receive focus. | InteractiveContext | ||
render():void
Called by RenderEngine during rendering. | BaseContext | ||
resize():void
When player window is resized. | InteractiveContext | ||
unfocus():void
When FlashPlayer lose focus. | InteractiveContext |
BaseContext | () | Constructor |
public function BaseContext()
Constructor
destroy | () | method |
override public function destroy():void
Destroy the context. Must be overrided and called at end.
infos | () | method |
public function infos():String
Get Debug version of Player.
ReturnsString —
|
render | () | method |
protected function render():void
Called by RenderEngine during rendering.
reset | () | method |
public function reset():void
Reset the context. Must be overrided.
setup | () | method |
override public function setup():void
Setup the context. Must be overrided and called at first.
throwCustomError | () | method |
public function throwCustomError(error:Class, message:*, id:* = 0):void
Throw a custom Error.
Parameters
error:Class | |
message:* | |
id:* (default = 0 )
|
throwError | () | method |
public function throwError(message:*, id:* = 0):void
Throw an Error.
Parameters
message:* | |
id:* (default = 0 )
|
contextDestroy | Event |
contextReset | Event |
contextSetup | Event |