home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 108
/
jogo-disk-108.iso
/
Games
/
steppenwolf_1_chapter_3.swf
/
scripts
/
frame_1226
/
DoAction.as
Wrap
Text File
|
2010-05-15
|
2KB
|
66 lines
StringSave = eval("/Save:Fichier").split("@");
StringNomVar = StringSave[0].split(",");
StringValeurVar = StringSave[1].split(",");
StringTypeVar = StringSave[2].split(",");
i = 0;
while(i < StringNomVar.length)
{
if(StringTypeVar[i] eq "number")
{
set("/Variables:" + StringNomVar[i],Number(StringValeurVar[i]));
}
else if(StringTypeVar[i] eq "boolean")
{
if(StringValeurVar[i] eq "true")
{
set("/Variables:" + StringNomVar[i],true);
}
else
{
set("/Variables:" + StringNomVar[i],false);
}
}
else
{
set("/Variables:" + StringNomVar[i],StringValeurVar[i]);
}
i += 1;
}
tellTarget("_root.Inventaire.ObjetAffiche")
{
gotoAndStop(eval("/Variables:ObjetSelect") + 1);
}
StringInventaire = StringSave[3].split(",");
set("/Variables:InvNb",int(StringInventaire[0]));
i = 1;
while(eval("/Variables:InvNbMax") >= i)
{
set("/Variables:InvObjet" + i,int(StringInventaire[i]));
i += 1;
}
StringMeg = StringSave[4].split(",");
set("/Variables:MegSetting",new §/Variables:Setting§());
eval("/Variables:MegSetting").X = StringMeg[0];
eval("/Variables:MegSetting").Y = StringMeg[1];
eval("/Variables:MegSetting").Scale = StringMeg[2];
eval("/Variables:MegSetting").Position = StringMeg[3];
eval("/Variables:MegSetting").Tableau = StringMeg[4];
if(eval("/Variables:EtatActif") eq "Tab3" and eval("/Variables:Tab3Niveau") == 1)
{
if(eval("/Variables:Cote") eq "G")
{
eval("/Variables:MegSetting").X = 146;
eval("/Variables:MegSetting").Y = 343;
eval("/Variables:MegSetting").Position = 1;
}
else
{
eval("/Variables:MegSetting").X = 433;
eval("/Variables:MegSetting").Y = 274;
eval("/Variables:MegSetting").Position = 3;
}
}
set("/Save:Fichier","");
set("/Variables:MegDessus",false);
eval("/Variables:MegSetting").MegInitialisation();