PackageTop Level
Classpublic dynamic class Main
InheritanceMain Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
  changeControllers : Boolean = false
[static]
Main
  enableSound : Boolean = true
[static]
Main
  firstFrame : Boolean = true
[static]
Main
  frameCounter : int = 0
[static]
Main
  inIFrame : Boolean = false
[static]
Main
  lastAdTime : int = 0
[static]
Main
  loadChallengeMode : Boolean = false
[static]
Main
  loadReplayMode : Boolean = false
[static]
Main
  loadRobotMode : Boolean = false
[static]
Main
  m_curController : Controller = null
[static]
Main
  m_fpsCounter : FpsCounter
[static]
Main
  _mochiads_game_id : String = "50feb50977299858"
[static]
Main
  mouseCursor : BitmapAsset
[static]
Main
  mouseHourglass : BitmapAsset
[static]
Main
  nextControllerType : int = -1
[static]
Main
  premiumMode : Boolean = false
[static]
Main
  theRoot : Sprite = null
[static]
Main
Public Methods
 MethodDefined by
  
Main()
Main
  
BrowserRedirect(url:String = null, newWindow:Boolean = false, parent:Boolean = false):void
[static] Invokes a webpage from URL.
Main
  
RefreshMouse(stage:Stage, target:Sprite = null):void
[static] Brings the cursor to the front.
Main
  
[static] Shows the hourglass cursor and hides the normal cursor.
Main
  
ShowMouse():void
[static] Hides the hourglass cursor and shows the normal cursor.
Main
  
update(e:Event):void
The update function is invoked every frame.
Main
Public Constants
 ConstantDefined by
  DEBUG_VERSION : Boolean = true
[static]
Main
  ENABLE_SITE_LOCK : int
[static]
Main
  GLOBAL_FONT : String = "Arial"
[static]
Main
  VERSION_STRING : String = "2.24"
[static]
Main
Property detail
changeControllersproperty
public static var changeControllers:Boolean = false
enableSoundproperty 
public static var enableSound:Boolean = true
firstFrameproperty 
public static var firstFrame:Boolean = true
frameCounterproperty 
public static var frameCounter:int = 0
inIFrameproperty 
public static var inIFrame:Boolean = false
lastAdTimeproperty 
public static var lastAdTime:int = 0
loadChallengeModeproperty 
public static var loadChallengeMode:Boolean = false
loadReplayModeproperty 
public static var loadReplayMode:Boolean = false
loadRobotModeproperty 
public static var loadRobotMode:Boolean = false
m_curControllerproperty 
public static var m_curController:Controller = null
m_fpsCounterproperty 
public static var m_fpsCounter:FpsCounter
_mochiads_game_idproperty 
public static var _mochiads_game_id:String = "50feb50977299858"
mouseCursorproperty 
public static var mouseCursor:BitmapAsset
mouseHourglassproperty 
public static var mouseHourglass:BitmapAsset
nextControllerTypeproperty 
public static var nextControllerType:int = -1
premiumModeproperty 
public static var premiumMode:Boolean = false
theRootproperty 
public static var theRoot:Sprite = null
Constructor detail
Main()constructor
public function Main()
Method detail
BrowserRedirect()method
public static function BrowserRedirect(url:String = null, newWindow:Boolean = false, parent:Boolean = false):void

Invokes a webpage from URL.

Parameters
url:String (default = null) — The URL to invoke.
 
newWindow:Boolean (default = false) — If true, it will open the URL in a new window.
 
parent:Boolean (default = false) — If true and newWindow is false, it will open the URL in the current window/tab. If false, it will open the URL in the current frame.
RefreshMouse()method 
public static function RefreshMouse(stage:Stage, target:Sprite = null):void

Brings the cursor to the front. If target is not null, it will shift the target sprite up by 5 pixels (for a floating roll).

Parameters
stage:Stage — The stage where the cursor is contained.
 
target:Sprite (default = null) — If target is not null, it will shift the target sprite up by 5 pixels (for a floating roll).
ShowHourglass()method 
public static function ShowHourglass():void

Shows the hourglass cursor and hides the normal cursor.

ShowMouse()method 
public static function ShowMouse():void

Hides the hourglass cursor and shows the normal cursor.

update()method 
public function update(e:Event):void

The update function is invoked every frame. This contains the initiation to load a bot directly and the changing of controllers, as well as any required frame-by-frame updating.

Parameters
e:Event
Constant detail
DEBUG_VERSIONconstant
public static const DEBUG_VERSION:Boolean = true
ENABLE_SITE_LOCKconstant 
public static const ENABLE_SITE_LOCK:int
GLOBAL_FONTconstant 
public static const GLOBAL_FONT:String = "Arial"
VERSION_STRINGconstant 
public static const VERSION_STRING:String = "2.24"