Action Script Help
Hello, I was asked to fix a couple things in a Flash Movie for a friends client. However, one of the fixes deals with the action script and I just don't know enough about that yet ... so if anyone can help I would appreciate it. Here is the problem ...
The scene has a clock on it ... set to 0:00 when the scene starts. The text states that the test takes two minutes, however, when the clock starts its count it only goes to the 1:00 minute mark. The question was to see how I can alter the below action script to make the counter count to 2 minutes instead of 1 minute.
The script:
onClipEvent (enterFrame) {
myCount = Number(_parent.count);
if (myCount<=9) {
_parent.myTime = String("00:0"+myCount);
} else if (myCount>=60) {
_parent.myTime = String("01:00");
} else {
_parent.myTime = String("00:"+myCount);
}
_parent.count = myCount+2;
}
I have tried changing the "60" to "120", but that did not work ... I also changed the "01:00" to "02:00" ... but all that did was after the count up to 60 it listed 2 minutes instead of 1 minute.
-Scott
|