dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Playing a movie in reverse

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    2
    Is there a way that i can tell a button to play a scene in reverse until it get to a certain frame? For example if i have a transition effect from a menu and then on a button click i want to have it do the reverse to get back to the menu. Any help is appreciated, Thank You.

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    1,159

    Hi and Welcome to FlashKit!

    Well, you can simulate playing in reverse by simply taking the sequence of frames that create your forward action, copying and pasting them into a new layer further down the timeline and choosing Reverse Frames from your right click menu. Put labels on each sequence and a stop action on the last frame of each. When you want the sequence to go forward, you will tell flash to goto and play the forward frame label. To reverse it, you tell flash to go to and play the reverse frame label.

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    170
    There is another and mor efficinet way of doing it.
    You can create a movie clip instanced ation.

    frame at which you want to stop is y.

    Frame # 1
    Stop

    Frame #2
    if(movie_clip_ to_be_reverse_played:_currentframe<=y)
    goto and stop 1
    else play

    Frame #3
    tell target(movie_clip_to_be_reverse_played)
    goto and stop _currentframe-1
    goto and play 2

    I think this should do

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Posts
    2
    thanks...they both worked, i will post the fla when its finished so you guys can see how it worked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center