home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 112
/
jogo-disk-112.iso
/
Games
/
mon_the_monkey.swf
/
scripts
/
frame_9
/
DoAction.as
Wrap
Text File
|
2010-07-14
|
1KB
|
62 lines
stop();
door();
backSound();
if(sudahMenang == true)
{
restart_btn._visible = true;
back_btn._visible = false;
}
else if(sudahMenang == false)
{
restart_btn._visible = false;
back_btn._visible = true;
}
back_btn.onRollOver = restart_btn.onRollOver = clear_btn.onRollOver = function()
{
over();
};
back_btn.onRelease = function()
{
klik();
delete this.onEnterFrame;
gotoAndStop(3, tandaBalik);
};
restart_btn.onRelease = function()
{
klik();
delete this.onEnterFrame;
gotoAndStop("menu");
};
clear_btn.onRelease = function()
{
klik();
buatData();
bacaData();
};
bacaData();
this.onEnterFrame = function()
{
zi = 1;
while(zi <= 10)
{
myStr = new String(this["scorenya" + zi]);
if(myStr.length == 1)
{
this["xscorenya" + zi] = "000" + this["scorenya" + zi];
}
else if(myStr.length == 2)
{
this["xscorenya" + zi] = "00" + this["scorenya" + zi];
}
else if(myStr.length == 3)
{
this["xscorenya" + zi] = "0" + this["scorenya" + zi];
}
else if(myStr.length == 4)
{
this["xscorenya" + zi] = this["scorenya" + zi];
}
zi++;
}
};