This is a discussion on "reverse" within the Flash & Multimedia Forum section. This forum, and the thread "reverse are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
reverse
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
reverse
is there any way to play frames backwards? for example a box slides in, you click on close and it just plays the frames backwards to make it go away?
|
|
|
|
#2
|
|||
|
|||
|
Well no. But it can be done :wink:. Your going to have to set a variable. And when that variable is equal to Something it plays. But if it is equal to Other than it GoToandPlay() Previous scene. That's the only way I know that you can do it. It's usually more effecient just to redo the animation in reverse, and to add that to the end of your movie clip.
|
|
#3
|
||||
|
||||
|
yea thanks thats what I have done
|
|
#4
|
|||
|
|||
|
You just write a script that uses gotoAndStop() previous frame - which can be done fairly easily and means that flash doesn't battle with you, trying to play it forwards at the same time.
But yes, reversing the animation can be easier if you have little actionscript experience. |
|
#5
|
|||
|
|||
|
Alternatively, use the prevFrame();
so your code should look like this.. on (release) { stop(); prevFrame(); } just substitute release with your desired event, like MouseOver. |
|
#6
|
|||
|
|||
|
that wouldn't work so well GWX. For if they mouse mouse over or don't mouse over then they get stuck and also it will lead you back the wrong way. Hope that makes since... You shouldn't give the user the power to control which frame they are on.
|
|
#7
|
|||
|
|||
|
rgr. Yeah, that makes pretty much since to me! :wink:
|
![]() |
| Tags |
| reverse |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reverse a string... | Anonymous User | Classic ASP | 4 | Jun 6th, 2008 09:16 |