So I'm using actionscript to load a plain text file. It loads a series of variables and uses their variables to goto a frame in another movie inside it.
Here's a sample of the load:
datafile = "data2.txt";
loadVariablesNum (datafile, 0);
It works this way to do a loadandstop at a specific in another movie:
tellTarget ("FPU") {
gotoAndStop (eval ("_level0/:FPU" add ../:c ));
}
However, I need to manipulate the numbers loaded from the original file, here's a sample of the data within data2.txt:
Rename1=7&IntUnit1=100&LSQ1=28&IntQ1=11&IFetch1=46&L2Cache1=10&IntReg1=20&ICache1=24&DCache1=26&RB1=74&FloatQ1=4&BranchPred1=13&Clock1=91&
FPU1=79&FPUReg1=16&Rename2=7&IntUnit2=100&LSQ2=29&IntQ2=11&IFetch2=24
&L2Cache2=7&IntReg2=17&ICache2=24&DCache2=25&RB2=65&FloatQ2=3&BranchP
red2=12&Clock2=70&FPU2=64&FPUReg2=13&Rename3=7&IntUnit3=100&LSQ3=29&I
ntQ3=11&IFetch3=19
I can't seem to just do an assign variable the intuitive way like this:
myvar = (eval ("_level0/:FPU" add ../:c ));
And this is with all sorts of combinations of () and "". Am I missing something?
Here's a sample of the load:
datafile = "data2.txt";
loadVariablesNum (datafile, 0);
It works this way to do a loadandstop at a specific in another movie:
tellTarget ("FPU") {
gotoAndStop (eval ("_level0/:FPU" add ../:c ));
}
However, I need to manipulate the numbers loaded from the original file, here's a sample of the data within data2.txt:
Rename1=7&IntUnit1=100&LSQ1=28&IntQ1=11&IFetch1=46&L2Cache1=10&IntReg1=20&ICache1=24&DCache1=26&RB1=74&FloatQ1=4&BranchPred1=13&Clock1=91&
FPU1=79&FPUReg1=16&Rename2=7&IntUnit2=100&LSQ2=29&IntQ2=11&IFetch2=24
&L2Cache2=7&IntReg2=17&ICache2=24&DCache2=25&RB2=65&FloatQ2=3&BranchP
red2=12&Clock2=70&FPU2=64&FPUReg2=13&Rename3=7&IntUnit3=100&LSQ3=29&I
ntQ3=11&IFetch3=19
I can't seem to just do an assign variable the intuitive way like this:
myvar = (eval ("_level0/:FPU" add ../:c ));
And this is with all sorts of combinations of () and "". Am I missing something?