Holden
06-12-2002, 08:43 PM
onClipEvent (load) {
go = true;
}
onClipEvent (enterFrame) {
if (go) {
x = random(122);
if ((x>=65) and (x<=122)) {
this.letter2 = chr(x);
}
if (x == 116) {
go = false;
}
}
}
I have this code duplicated several times within a MC on my mainstage. It is from a tutorial I've been working through. It basically randomly picks letters until it finds the correct one, then stops. I have several of these text fields with this actionscript to make up a word, that unscrambles. But thats where the movie ends. I want it to finish the script then continue along the Main movie timeline, and then return to frame 1 and begin again.
any idea what i could change or add ?
go = true;
}
onClipEvent (enterFrame) {
if (go) {
x = random(122);
if ((x>=65) and (x<=122)) {
this.letter2 = chr(x);
}
if (x == 116) {
go = false;
}
}
}
I have this code duplicated several times within a MC on my mainstage. It is from a tutorial I've been working through. It basically randomly picks letters until it finds the correct one, then stops. I have several of these text fields with this actionscript to make up a word, that unscrambles. But thats where the movie ends. I want it to finish the script then continue along the Main movie timeline, and then return to frame 1 and begin again.
any idea what i could change or add ?