Hi,
On my main timeline, I have a bunch of movie clips that are consecutive. I have a button on the main timeline that, when clicked, I want to go to "_currentframe + 20" of whichever movie clip is playing.
What I did was...in a frame action of the first clip I declared a variable -- myClip = slide1. Then, at the first frame of the second clip-- myClip = slide2, and so on.
For the script attached to the button, I put:
on (release) {
cframe = _root.myClip._currentframe + 20;
_root.myClip.gotoAndPlay(cframe);
}
It's not working though. What am I doing wrong? Basically, I want the name of the current movie clip to be put into the variable myClip, so it knows where to go when the button is pressed. Can anyone help?
Thanks in advance.
manfishj
On my main timeline, I have a bunch of movie clips that are consecutive. I have a button on the main timeline that, when clicked, I want to go to "_currentframe + 20" of whichever movie clip is playing.
What I did was...in a frame action of the first clip I declared a variable -- myClip = slide1. Then, at the first frame of the second clip-- myClip = slide2, and so on.
For the script attached to the button, I put:
on (release) {
cframe = _root.myClip._currentframe + 20;
_root.myClip.gotoAndPlay(cframe);
}
It's not working though. What am I doing wrong? Basically, I want the name of the current movie clip to be put into the variable myClip, so it knows where to go when the button is pressed. Can anyone help?
Thanks in advance.
manfishj