home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 174
/
MOBICLIC174.ISO
/
pc
/
DATA
/
_COMMUN
/
chargement_barre
/
barre.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2015-04-27
|
1KB
|
68 lines
this.onLoading = function(percent)
{
this.percent = percent;
if(percent >= 100)
{
if(_global.MODULE_INFO.preload_bar_button_quit == false)
{
_global.HOTE.quit();
}
else
{
quit._visible = true;
quit.gotoAndStop("E7");
}
}
else
{
this.play();
}
loadbar.gotoAndStop(Math.round(loadbar._totalframes * percent / 100));
};
if(_global.MODULE_INFO.preload_bar_button_quit == false)
{
quit._visible = false;
}
else
{
quit._visible = true;
}
loadbar.stop();
quit.onPress = function()
{
CURSEUR.Action("fleche");
if(percent >= 100)
{
_global.HOTE.quit();
}
};
quit.onRollOver = quit.onDragOver = function()
{
CURSEUR.Action("doigt");
if(percent >= 100)
{
quit.gotoAndPlay("E3");
}
};
quit.onRollOut = quit.onDragOut = function()
{
CURSEUR.Action("fleche");
if(percent >= 100)
{
quit.gotoAndPlay("E7");
}
};
this.Init = function()
{
xtrace("Init" + this);
_global.HOTE.InitFin(this);
};
this.Reset = function()
{
percent = 0;
this.onLoading(0);
quit.gotoAndPlay("E1");
loadbar.stop();
};
stop();