Engine ActionScript callbacks
There are a number of ActionScript callbacks that are automatically called by the engine. Simply by defining the functions in your Flash source file root, the engine will be able to invoke them.
cry_onSetup(isConsole:Boolean)
: This function is called when the SWF file is initially loaded by the engine.cry_onShow()
: This function is called when the SWF file is shown.cry_onHide()
: This function is called when the SWF file is hidden.cry_onResize(_iWidth:Number, _iHeight:Number)
: This function is called when the in-game resolution is changed.cry_onBack()
: This function is called when the user presses the back button.cry_requestHide()
: This function is called when the element is hidden.