home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Aventura
/
chichi.swf
/
scripts
/
frame_271
/
DoAction.as
Wrap
Text File
|
2008-09-25
|
2KB
|
64 lines
function gameOver3(score)
{
var _loc6_ = undefined;
trace("yes_working3");
var _loc3_ = undefined;
var _loc2_ = "";
var _loc5_ = "FLIPPIXEL";
var _loc4_ = "PIXEL001a";
_loc3_ = _root.key;
_loc2_ = _root.url;
if(_loc2_.length == 0 || _loc3_.length == 0)
{
getUrl("javascript: GameScoreSubmitted(\'false\',\'false\',\'false\');void(0);", "");
}
else
{
getgameURL(_loc3_,_loc2_,score,_loc4_);
}
}
function getgameURL(key, gameURL, score, gameID)
{
var _loc2_ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890|_";
var _loc3_ = score + "|" + gameID;
var _loc1_ = getEncryptedFullString(_loc3_,key,_loc2_);
var _loc6_ = getDecryptedFullString(_loc1_,key,_loc2_);
getURL("javascript: GameScoreSubmitted(\'" + _loc1_ + "\',\'" + gameID + "\',\'" + gameURL + "\');void(0);","");
}
function getEncryptedFullString(_password, key, alphabetString)
{
var _loc4_ = "";
var _loc2_ = length(_password);
var _loc3_ = length(key);
var _loc6_ = new Array(_loc3_);
i = 0;
while(i < _loc3_)
{
_loc6_[i] = alphabetString.indexOf(key.substr(i + 1,1));
i++;
}
var _loc5_ = new Array(_loc2_);
i = 0;
while(i < _loc2_)
{
_loc5_[i] = alphabetString.indexOf(_password.substr(i + 1,1));
i++;
}
var _loc7_ = new Array(_loc2_);
i = 0;
while(i < _loc2_)
{
temp_int = (_loc6_[i % _loc3_] + _loc5_[i]) % length(alphabetString);
_loc7_[i] = alphabetString.substr(temp_int,1);
_loc4_ += alphabetString.substr(temp_int + 1,1);
i++;
}
return _loc4_;
}
Mouse.show();
final_score.text = _global.final_score;
submit_btn3.onRelease = function()
{
gameOver3(_global.final_score);
};