PDA

View Full Version : goToAndPlay() does not play???


flashdudette
01-28-2003, 04:37 PM
what is the problem - I have one mc name myClip on main time line. I the clip are several labels: one, deux, three.
at frame named deux, there is an animation that last 10 frames.
I have no stop(); at frame name deux, I have a stop(); at frame named three.
I want to be able to access frame name "deux" so It can play the animation.
I tried:
onClipEvent (enterFrame) {
this.gotoAndPlay("deux");

}
assuming it would play starting at frame name "deux" but it just stops there though I did not used gotoAndStop();
If I use a button, to access the frame so it plays the ani - it works.
Why does not it work with onClipEvent() ?

tg
01-28-2003, 05:23 PM
heres my guess:

take your code out of the 'enterframe' event, and it will work... here's my thinking...
you tell it to gotoand pleay duex
your mc plays first frame of animation
your mc trys to go to next frame, but when the frame changes, your parent timeline tells the mc to goto and play duex... so it goes back to the first frame of your animation.
and so you enter a viscious loop.
yes?no?

flashdudette
01-28-2003, 06:00 PM
ok - I took the code out of the onClipEvent(); and put it on the main timeline.
I have:
myClip.gotoAndPlay("deux");

It still stop there instead of playing the 10 frames.
Why since it plays them if the code is in a button event?