onClipEvent (enterFrame) {
_x = random(5) + 240;
_y = random(5) + 180;
}
How do I stop this piece of code at a specific frame?
Probably real simple but I have tried to insert stop(); at the specific frame I wanted to stop at but to no avail.
Printable View
onClipEvent (enterFrame) {
_x = random(5) + 240;
_y = random(5) + 180;
}
How do I stop this piece of code at a specific frame?
Probably real simple but I have tried to insert stop(); at the specific frame I wanted to stop at but to no avail.
Not sure what you're asking. Each time the frame is loaded, this code will fire. If you want to specify when the code is executed, then you need a separate function that is called when you want to fire of the lines.