I'm creating a video clip of a ball that moves, and I'm doing this all with actionscript.(except for the creation of the objects)
Essentially, I'm trying to pause my animation in my actionscript file by calling this function:
function stopMoving():Void {
this.targetMC.onEnterFrame = null;
}
this function has worked in my other programs, but for some reason it will not work with this one.
I'll also post these two examples of calls
1. (works):
_root.ball.startMoving();
2.(doesn't work)
(also, it is just using a different movie clip)
_root.particle.stopMoving();
I'm not understanding why both calls don't work the same...
any ideas?
thanks
Essentially, I'm trying to pause my animation in my actionscript file by calling this function:
function stopMoving():Void {
this.targetMC.onEnterFrame = null;
}
this function has worked in my other programs, but for some reason it will not work with this one.
I'll also post these two examples of calls
1. (works):
_root.ball.startMoving();
2.(doesn't work)
(also, it is just using a different movie clip)
_root.particle.stopMoving();
I'm not understanding why both calls don't work the same...
any ideas?
thanks