home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 161
/
MOBICLIC161.ISO
/
pc
/
DATA
/
DSS161
/
DSS161_00
/
DSS161_00.swf
/
scripts
/
dss161_00
/
TestBox.as
< prev
Wrap
Text File
|
2014-01-15
|
2KB
|
76 lines
package dss161_00
{
import dss161.engineaddons.facades.GameEngine;
import dss161.engineaddons.tools.debug.ATestBox;
public class TestBox extends ATestBox
{
private var callback:Function;
private var algo:CapsuleAlgo;
public function TestBox(param1:GameEngine, param2:CapsuleAlgo)
{
super(param1);
this.algo = param2;
this.init();
}
public function showModal(param1:Function) : void
{
this.callback = param1;
this.visible = true;
}
private function init() : void
{
visible = false;
buttons = [{
"name":"BTN_DESTROY",
"label":"BTN_DESTROY"
},{
"name":"BTN_PERFORM",
"label":"BTN_PERFORM"
},{
"name":"BTN_PAUSE",
"label":"PAUSE"
},{
"name":"BTN_NEXT",
"label":"BTN_NEXT"
}];
onClick = function(param1:Object):void
{
switch(param1.name)
{
case "BTN_PERFORM":
Performer.list();
break;
case "BTN_DESTROY":
game.config.APP.destroy();
break;
case "BTN_NEXT":
game.mainAlgo.jeu.next();
}
};
onRollOver = function(param1:String):void
{
switch(param1)
{
case "BTN_PAUSE":
game.config.APP.sleep();
}
};
onRollOut = function(param1:String):void
{
switch(param1)
{
case "BTN_PAUSE":
game.config.APP.wake();
}
};
}
}
}