is this code too fast for flash?
I have a stop watch app, and in there are 2 two frames i am having trouble with.
at frame 31, I have this code:
Now = Number((getTimer()-StartTime))+Number(SavedTime);
at frame 32, I have this code:
gotoAndPlay("Display Time");
and everything work fine, but if I move the code from 32 to 31 to have something like this:
Now = Number((getTimer()-StartTime))+Number(SavedTime);
gotoAndPlay("Display Time");
Then Flash will run into trouble, and ask me to abort the script.
Oh, one more thing. Here is the code from Display Time frame, and Get Time frame is the frame 31:
if (Number(Now)>1000) {
Minutes = int((substring(Now, 1, (length(Now)-3)))/60);
Seconds = int((substring(Now, 1, (length(Now)-3)))-(Minutes*60));
}
Centiseconds = int(substring(Now, (length(Now)-2), 2));
if (Number(Centiseconds)<10) {
Centiseconds = "0" add Centiseconds;
}
if (Number(Seconds)<10) {
Seconds = "0" add Seconds;
}
if (Number(Minutes)<10) {
Minutes = "0" add Minutes;
}
if (Number(int(Minutes))>59) {
call("Reset");
}
gotoAndPlay("Get Time");