home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 148
/
MOBICLIC148.ISO
/
mac
/
DATA
/
DSS148
/
DSS148_00
/
DSS148_00.swf
/
scripts
/
DSS148_00.as
Wrap
Text File
|
2012-10-16
|
2KB
|
90 lines
package
{
import com.milanpresse.capsule.GameEngineCapsule;
import com.milanpresse.tools.GlobalesFunctions;
import dss148.Commun;
import dss148_00.CapsuleAlgo;
public class DSS148_00 extends GameEngineCapsule
{
private var algo:CapsuleAlgo = null;
public var _commun:Commun;
public var mediasToAdapt:Array;
public function DSS148_00()
{
this.mediasToAdapt = [];
super();
}
public function onConfigLoaded(param1:Function) : void
{
var _loc2_:int = 0;
this._commun = new Commun(engine);
if(!(this._commun.memo.savePoint.moduleNum == 0 && this._commun.memo.savePoint.status == "NEW_GAME"))
{
this.mediasToAdapt = [{
"id":"A_DSS147_00_A_DSS147_00",
"preload":"false"
},{
"id":"S_FR_DSS148_00_09",
"preload":"false"
},{
"id":"S_FR_DSS148_00_11",
"preload":"false"
},{
"id":"S_FR_DSS148_00_29",
"preload":"false"
},{
"id":"S_FR_DSS148_00_31",
"preload":"false"
}];
_loc2_ = 3;
while(_loc2_ <= 5)
{
this.mediasToAdapt.push({
"id":"S_FR_DSS148_00_" + GlobalesFunctions.gimme2digits(_loc2_),
"preload":"false"
});
_loc2_++;
}
_loc2_ = 13;
while(_loc2_ <= 28)
{
this.mediasToAdapt.push({
"id":"S_FR_DSS148_00_" + GlobalesFunctions.gimme2digits(_loc2_),
"preload":"false"
});
_loc2_++;
}
}
param1();
}
override public function start(param1:Object = null) : void
{
this.algo = new CapsuleAlgo(engine,this._commun);
}
override public function destroy() : void
{
this.algo.destroy();
super.destroy();
}
override public function sleep() : void
{
this.algo.sleep();
}
override public function wake() : void
{
this.algo.wake();
}
}
}