-
I Feel Like Him
Hey,
Does anyone out there know how to set this up?
2 buttons (a) and (b)
I have a movie clip with 10 frames in it.
I want button (a) to make the movie play forward
and (b) to play it backward from the place that
(a) left off. When your not on either button the
movie stops.
I don't think its very hard but I can't seem to
figure it out and can't find any tutorials on it.
I know how to make buttons that 'slide' a movie
up and down or left and right, but what I want is
for the buttons to play the movie.
Thanks to anyone who can hook me up.
-
ok heres what you want...
create a movie clip with 3 frames of actionscript:
1st frame,
stop();
2nd frame
_parent.gotoAndStop(_parent._currentframe-1);
3rd frame:
if(_parent._currentframe==1){
_parent.stop();
gotoAndStop(1);
}else{
gotoAndPlay(2);
}
put this movie clip inside the one you want to play reverse. name it rev or something. then on your buttons put
button a:
on(rollOver){
movieyouwannaplay.play();
}
on (rollOut){
movieyouwannaplay.stop();
}
and on button b (the reverse button):
on(rollOver){
movieyouwannaplay.rev.gotoAndPlay(2);
}
on(rollOut){
movieyouwannaplay.rev.gotoAndStop(1);
}
hope this helps!
bill
-
I Feel Like Him
Wow Bill thanks alot, it works great.
Is there any way to set it up so when I rollover
the reverse button it loops movieyouwannaplay but
backwards? When I rollover the forward button it
loops forward and I want it to do the same when I
rollover the backward button.
Thanks
-
Im assuming you want it to loop, as in when it gets to the first frame you want it to go back to the last frame and play in reverse again: well, this should work:
ok heres what you want...
in your movie clip with 3 frames of actionscript:
1st frame,
stop();
2nd frame
_parent.gotoAndStop(_parent._currentframe-1);
3rd frame:
if(_parent._currentframe==1){
_parent.gotoAndStop(LAST FRAME IN YOUR MOVIE);
}
gotoAndPlay(2);
that should do it. hope this helps
-bill
-
I Feel Like Him
Bill this is working great.
However, when I rolloff of my reverse button
the movie continues to play backwards. The action
scripting you gave looks like it should work but
could you double check it too make sure. I looked
at the scripting I entered and its identical to what
you provided so far. Thanks.
-
you should have this script on your rev button:
on(rollOut){
movieyouwannaplay.rev.gotoAndStop(1);
}
no reason that shouldnt be working!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|