Packageartcustomer.maxima.context
Classpublic class GameContext
InheritanceGameContext Inheritance ServiceContext Inheritance CrossPlatformInputsContext Inheritance InteractiveContext Inheritance EventContext Inheritance Object

GameContext : Context of the game.



Public Methods
 MethodDefined By
  
GameContext(contextView:DisplayObjectContainer = null)
Constructor
GameContext
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Add an eventListener.
EventContext
 Inherited
allowDomain(... rest):void
Allow a domain in application.
ServiceContext
 Inherited
allowInsecureDomain(... rest):void
Allow an insecure domain in application.
ServiceContext
  
debug():String
Get Debug version of Context.
GameContext
  
destroy():void
[override] Destroy the context.
GameContext
 Inherited
dispatchEvent(e:Event):Boolean
Dispatch an event.
EventContext
 Inherited
Get properties and values of Flash parameters in String format.
ServiceContext
 Inherited
exitPlayer(code:uint = 0):void
Exit Flash Player.
ServiceContext
 Inherited
getParameter(name:String):Object
Get Flash parameter by name.
ServiceContext
 Inherited
hasEventListener(type:String):Boolean
Test an eventlistener.
EventContext
 Inherited
hideLogo():void
Hide Framework logo.
InteractiveContext
 Inherited
hideMenu():void
Hide Framework context menu.
InteractiveContext
  
infos():String
Get Debug version of Player.
GameContext
 Inherited
loadPolicyFile(url:String):void
Load policy file (XML Crossdomain).
ServiceContext
 Inherited
move(x:int = 0, y:int = 0):void
Move the context view.
InteractiveContext
 Inherited
moveLogo(align:String, verticalMargin:int = 0, horizontalMargin:int = 0):void
Move Framework logo.
InteractiveContext
 Inherited
Pause Flash Player
ServiceContext
 Inherited
Refresh the context view.
InteractiveContext
 Inherited
Force the garbage collection process.
ServiceContext
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove an eventlistener.
EventContext
  
reset():void
Reset the context.
GameContext
  
resize():void
Called by InteractiveContext during resizing.
GameContext
 Inherited
Resume Flash Player
ServiceContext
  
sendExternalMessage(message:String, id:String = null):void
Send external message from internal elements of the framework.
GameContext
  
setup():void
[override] Setup the context.
GameContext
 Inherited
showLogo():void
Show Framework logo.
InteractiveContext
 Inherited
showMenu():void
Show Framework context menu.
InteractiveContext
  
start():void
Start Game after called setup and set all core classes.
GameContext
  
throwCustomError(error:Class, message:*, id:* = 0):void
Throw a custom Error.
GameContext
  
throwError(message:*, id:* = 0):void
Throw an Error.
GameContext
 Inherited
Switch Normal / FullScreen mode
InteractiveContext
 Inherited
willTrigger(type:String):Boolean
Test event trigger.
EventContext
Events
 Event Summary Defined By
 InheritedInteractiveContext
  GameContext
 InheritedInteractiveContext
 InheritedInteractiveContext
 InheritedInteractiveContext
 InheritedInteractiveContext
 InheritedInteractiveContext
  GameContext
  GameContext
 InheritedInteractiveContext
  GameContext
  GameContext
 InheritedInteractiveContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
 InheritedCrossPlatformInputsContext
Constructor Detail
GameContext()Constructor
public function GameContext(contextView:DisplayObjectContainer = null)

Constructor

Parameters
contextView:DisplayObjectContainer (default = null)
Method Detail
debug()method
public function debug():String

Get Debug version of Context.

Returns
String
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.

Returns
String
reset()method 
public function reset():void

Reset the context. Must be overrided.

resize()method 
public final function resize():void

Called by InteractiveContext during resizing. Don't call it !

sendExternalMessage()method 
public function sendExternalMessage(message:String, id:String = null):void

Send external message from internal elements of the framework. Must be overrided.

Parameters

message:String
 
id:String (default = null)

setup()method 
override public function setup():void

Setup the context. Must be overrided and called at first.

start()method 
public function start():void

Start Game after called setup and set all core classes. Override it !

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)

Event Detail
gameDestroy Event
Event Object Type: artcustomer.maxima.events.GameEvent

gamePause Event  
Event Object Type: artcustomer.maxima.events.GameEvent

gameReset Event  
Event Object Type: artcustomer.maxima.events.GameEvent

gameResume Event  
Event Object Type: artcustomer.maxima.events.GameEvent

gameSetup Event  
Event Object Type: artcustomer.maxima.events.GameEvent