home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 145
/
MOBICLIC145.ISO
/
pc
/
DATA
/
DSS145
/
DSS145_08
/
DSS145_08.swf
/
scripts
/
dss145_08
/
BtRetour.as
next >
Wrap
Text File
|
2012-07-18
|
2KB
|
66 lines
package dss145_08
{
import com.milanpresse.engine.Engine;
import com.milanpresse.engine.initmovieclip.InteractiveMovie;
import com.milanpresse.engine.managers.TimelineManager;
import com.milanpresse.engine.medias.MediaSwf;
import com.milanpresse.engine.typeargument.NoiseObject;
import flash.net.SharedObject;
public class BtRetour
{
private var BT_RETOUR:InteractiveMovie;
private var gListDone:Array;
private var gDoneDepart:Boolean;
public function BtRetour(_engine:Engine, _timelineManager:TimelineManager, so:SharedObject)
{
var BT_RETOURswf:MediaSwf = null;
super();
BT_RETOURswf = _engine.showSwf({
"code":"BT_RETOUR",
"parent":_engine.config.layers["menu"]
});
this.gListDone = so.data.listDone;
this.gDoneDepart = this.gListDone[_engine.config.moduleNum - 1] == 1;
this.BT_RETOUR = new InteractiveMovie(BT_RETOURswf.swfContent,_timelineManager);
this.BT_RETOUR.gotoAndStop(1);
this.BT_RETOUR.mc.onRollOver = function(p:Object):void
{
this.gotoAndStop(2);
_engine.playNoise(new NoiseObject({"code":"B_RET"}));
_engine.showIB({
"id":"IB_RET",
"reference":BT_RETOURswf.swfContent
});
};
this.BT_RETOUR.mc.onRollOut = function(p:Object):void
{
this.gotoAndStop(1);
_engine.stopNoise(new NoiseObject({"code":"B_RET"}));
_engine.hideIB();
};
this.BT_RETOUR.mc.onPress = function(p:Object):void
{
_engine.stopNoise(new NoiseObject({"code":"B_RET"}));
this.kill();
if(gDoneDepart)
{
so.data.lastDone = 2;
}
else
{
so.data.lastDone = 0;
}
so.flush();
_engine.host.changeModule({"numMod":0});
};
this.BT_RETOUR.activeMC();
}
}
}