home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
soccofobia.swf
/
scripts
/
frame_9
/
DoAction.as
Wrap
Text File
|
2008-09-25
|
2KB
|
82 lines
stop();
cur_frame = "End";
counter_txt.text = score;
succes_mc._visible = chal_succes;
if(chal > 0 & kong == true & chal_succes == true)
{
_root.kongregateStats.submit("Chal_Succeeded",1);
_root.kongregateStats.submit("Chal" + chal + "_Succeeded",1);
}
if(chal == 0)
{
ss = niv;
}
else
{
ss = chal + 3;
}
soc_so.data.move_type = move_type;
if(score > soc_so.data["hi_Score" + ss])
{
soc_so.data["hi_Score" + ss] = score;
if(sound_on == true)
{
soc_so.data.sound_on = 1;
}
else
{
soc_so.data.sound_on = 0;
}
soc_so.flush();
}
end_Game();
hi_txt.text = soc_so.data["hi_Score" + ss];
hi_btn._visible = false;
if(_root.kong == true)
{
_root.kongregateScores.submit(score);
}
counter_txt.filters = new Array(edge_glow,dropShadow2);
hi_txt.filters = new Array(edge_glow,dropShadow2);
var game_mode = "";
switch(chal)
{
case 0:
if(niv == 1)
{
game_mode = "Easy";
}
if(niv == 2)
{
game_mode = "Normal";
}
if(niv == 3)
{
game_mode = "Hard";
}
if(niv == 4)
{
game_mode = "Nuts";
}
break;
case 1:
game_mode = "Dodgeball";
break;
case 2:
game_mode = "Hardcore Fan";
break;
case 3:
game_mode = "The Hunter";
break;
case 4:
game_mode = "Speed Freak";
break;
case 5:
game_mode = "Soccer Junkie";
break;
case 6:
game_mode = "Top Scorer";
}
ScoreAPI.send(_root.com_mindjolt_api,"submitScore",score,game_mode);
_root.HPScoreService.postScore(score,game_mode);