How Do You Reverse Your Animation Or Do A Reverse Wipe...
...when loading a new movie or going to a new scene? In other words, when a new movie is fading in and then stoping to reveal buttons or navigation, how do you tell your movie to reverse your frames or reverse the intro animation, then go to and play a new movie? I apoligize it's hard to explain. Here is an example...
http://www.djstevelawler.com/
1)enter the site
2)skip the intro
3)you will then see the turntable and all of the animation fade in along with a drumset that if clicked reveals your navigation.
4)click on "chart" for example
5)the entire animation reverses itself or fades out the way it first came in, this is the effect that I'm after.
6)the chart page fades in along with the navigation
7)clicking the back button and the chart page fades out again just as it faded in and load the portal page.
Please help me out with this. Even if you can point me toward a tutorial I would be extremely grateful.
Thanks!
FlashKit > Flash Help > Flash MX
Posted on: 02-19-2003, 06:33 PM
View Complete Forum Thread with Replies
Sponsored Links:
OnMouseOut{freeze Button Animation, Reverse Animation Back To..}
This is my question in an action script "perspective", since i dont wanna spend the time typing this question out in plain english..
How would i implement this effect into a button I made that contains a MovieClip as the over state? ::
onMouseOut{
stop button's Over animation on current showing/playing frame;
then reverse animation back to start
OR
fade out current showing/playing Over animation frame, back to the button's load state (not over)
};
View Replies !
View Related
Reverse Animation?
I'm trying to reverse the animation of my menu on "roll-out" I need to know the ActionScript and where exactly to put it.
Basically... I have a "button" that's actually a MovieClip. On "roll-over" it slides down more "buttons"
I posted on my other thread, but no replies, thought I'd try it here.
Thanks for any help you can offer...
Sadcomedian
View Replies !
View Related
Reverse Animation
hello there
does anyone know how to reverse the sequence of animation? i guess the animation needs to be in a movie clip...
any advice, hints, clues or hands on help will be much appreciated.
thank you!
m
View Replies !
View Related
Reverse Animation
I am working with flash file and I want it so that when it is on frame 15, and the mouse is off the button that it will play backward to frame one then stop. I haven't the slightest clue on how to do this. Please help.
View Replies !
View Related
Reverse Animation
Hi,
I have an animation consisting of a sequence of jpegs all contained in a mc which sits on the root timeline and continually loops. Is there a way for the animation to play from first frame to the last and then last to first.
View Replies !
View Related
[F8] Reverse Animation?
I'm using Flash 8.
I've been trying to figure out this coding for a while, I'm afraid I've just missed a ";" somewhere, but then again, I might just have this whole thing wrong.
At the simplest: I've got a main movie and two embedded movies, one menu and one content. I also have an "actions" movie at _root to call things from, etc. I declare a variable "currentframe" in _root as a _root variable. It's supposed to return the current frame of the content movie (which also has embedded movies for each frame of content). I also declare a _root variable "newframe" set to null.
I don't have access to the code right now, and I don't want to type it out in case I miss something, so I'll just translate it to English: On (press) of a button in the menu, I grab the current frame number of the movie maincontent and put it in currentframe, then set the variable newframe to whatever button I just pressed. I then access the maincontent movie and play the "exit animation" frame of whatever frame is labeled "currentframe." When the last frame is hit, the action on the frame is to go to _root, and then the content menu, and play the "entry animation" of whatever "newframe" is set to. When the entry animation has been completed, the frame action sets "currentframe" to "newframe" and resets "newframe" to null, until another button is pressed.
Basically, I want my content to animate upon entry, then when a button is pressed to go to another page, the current content exit animate and the new content animate in. I know it's possible because everyone does it, but it doesn't work. It just sits there, I click and nothing happens. Is this how it's supposed to be done? Am I missing something vital here?
Thanks!
View Replies !
View Related
Reverse Animation Using AS? Help
Hey,
I have done a bunch of fairly complex tweens that work forward (for the "next" button) but i need them to work for the "back" button and the only way of doing this without animating them backwards that i think of would be to play backwards from one frame label to another.
Here is my code so far:
MainTimeLine: Frame1: Layer1:
Code:
_global.pos = 1
Up Button Code:
Code:
on (release) {
if (_global.pos == 1) {
_root.bar_1_mc.gotoAndPlay("red");
}
if (_global.pos == 2) {
_root.bar_1_mc.gotoAndPlay ("orange")
}
if (_global.pos == 3) {
_root.bar_1_mc.gotoAndPlay ("yellow")
}
if (_global.pos == 4) {
_root.bar_1_mc.gotoAndPlay ("green")
}
if (_global.pos == 5) {
_root.bar_1_mc.gotoAndPlay ("blue")
}
if (_global.pos == 6) {
_root.bar_1_mc.gotoAndPlay ("pink")
}
}
Down Button Code (So far):
Code:
on (release) {
if (_global.pos == 1) {
_root.bar_1_mc.gotoAndPlay ("pink")
}
if (_global.pos == 2) {
_root.bar_1_mc.gotoAndPlay ("blue")
}
if (_global.pos == 3) {
_root.bar_1_mc.gotoAndPlay ("green")
}
if (_global.pos == 4) {
_root.bar_1_mc.gotoAndPlay ("yellow")
}
if (_global.pos == 5) {
_root.bar_1_mc.gotoAndPlay ("orange")
}
if (_global.pos == 6) {
_root.bar_1_mc.gotoAndPlay ("red")
}
}
Each label of bar_1_mc, in turn assigns a number from 1 - 6 to _global.pos then stop(); 's the timeline.
Thanks for any help!
View Replies !
View Related
Reverse Animation
Hello
I am starting to learn actionscript 3. i am having difficulty trying to write the code that makes the object moves in the opposite direction when it reaches certain point e.g. making object moves up when it reaches the lower end of the stage.
Can somebody help?
Myo
View Replies !
View Related
Reverse Animation?
Hi all,
I have tried looking across the web but I don’t exactly know what the type of animation is called besides a reverse, so I'll explain it in hope you understand what I am looking for and hopefully you can point me in the right direction.
If you have multiple buttons 1-9 and you click button1, the layout expands downwards, and some images appear, the lot!
If you should then click on random button through 2-9 how do you make it so button1's animation then reverses? I click button4 and the animations for button1 reveres, pictures disappear and the drop down now returns upwards to default.
So after button onclick the animation reverses instead of, onlick go to new time frame.
If this is confusing I apologise, let me know so I can try explaining it a bit more.
View Replies !
View Related
Reverse Animation
can anybody tell me how to do reverse animation. on the flash. i've seen many sites which dose have the reverse animation. like this one
http://www.templatemonster.com/flash...tes/13616.html
one goes and tha another appears.
i've tried a lot and conclusion the frustration cums. even i've the script for this animtion also but the i got puzle.
here is the script :-
on (rollOver) {
if (_root.link<>page) {
this.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>page) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>page && _root.G<>1) {
_root.G = 1;
_parent["item"+_root.link].gotoAndPlay("s2");
_root.link = page;
_root.Play();
}
}
scripts is ok. but i've searched the whole fla file, where i didn't foud the this "link" and "page" as a variabe or instance name of any movieClip. dan how dose this script wroking.
is it abt the "hidden frames scripts"
help me out from this.
View Replies !
View Related
Reverse Animation
I know this has talked about here, but I wasn't able to find an answer that worked for me. Basically what I'm trying to do is something similar to how this works: http://www.meyerimports.com/sundown.html. So when you click on the previous pic, it animates back to it. Is it possible to do this without having to re-animate it going the other way?
Thanks!
View Replies !
View Related
Reverse Animation
Hi all,
i am using a flash movie with two buttons play & pause.
now i need one more button for reverse animation.
It,s about a 3 min animation without using movieclips.
It's all in a frame animation.
so i need a action script to control the button such that by clicking the button the animation must be play in the same scene but in reverse.
For eg,
if the movie is running in the 100th frame ,if i click the button it should be play in reverse like 100,99.98,97,96...etc.
reply me asp.
it,s a urgent need.
Thanx
View Replies !
View Related
Reverse Animation
Hi all,
i am using a flash movie with two buttons play & pause.
now i need one more button for reverse animation.
It,s about a 3 min animation without using movieclips.
It's all in a frame animation.
so i need a action script to control the button such that by clicking the button the animation must be play in the same scene but in reverse.
For eg,
if the movie is running in the 100th frame ,if i click the button it should be play in reverse like 100,99.98,97,96...etc.
reply me asp.
it,s a urgent need.
Thanx
View Replies !
View Related
Reverse Animation Effect
what is the best method to do a reverse animation effect ? somethin like if you on mouse a button .. an animation will be played.. but if half way thru the animation, you mouse out, I want the animation to reverse from the point that it has played.
What i did to simulate this effect is to create two version of the animation, one forward and one backward. And I will make it jump to respective frame (dependin on where i stop in the forward animation)in backward version to play the reverse part.
But this method is very troublesome to do.. if i have many animation that i need to do reverse effect.. it will consume a lot of time.
View Replies !
View Related
Button Animation Reverse
Hi, I've first want to say thanks, for the help, this forum is great. When I use a movieclip in a button for the mouseover, and mouseout after that, it just stops. Is there any way I can smoothly reverse it from the current frame, to return to the normal state without excessive actionscripting?
Thanks much!
View Replies !
View Related
Quick Way To Reverse An Animation?
Often times I make an animation and want to have it go backward in reverse (for example, maybe I make a frame by frame jump upwards and then want him to come back down by re-using those same frames, but in reverse order), is there a way to easily just reverse everything? Or do I have to copy and paste each frame in reverse (which is what I've been doing). Just thought I'd post and ask if there were any built in features to let me do this faster.
View Replies !
View Related
How To Reverse Animation In Button?
I have an animated button that plays a movie from frame 1 to 9 when I mouse over it. When I move my mouse off of it, it stops. What I want to do is go in reverse when I move my mouse off of it and I don't want it to just play the movie from 9 to 1, I want it to go in reverse from the frame I was on when my mouse was over the button. Anyone have any idea how to do this?
Prindel
View Replies !
View Related
Playing An Animation In Reverse.
Hi, I'm pretty new to flash + especially Actionscripting in Flash...So I'd appreciate any help I can get.
I have an animation for a website (see link below) whereby a tape measure zooms in. I've made it reverse by adding in the same animation keyframes in the opposite sequence, but it's really added to my file size (almost doubled it). What I want to do is have it so you press the back button and the animation plays in reverse, zooming out to the beginning.
I've done a bit of searching on the forums to see if I could find an answer to this problem and there seem to be a lot of similar topics with different methods. I guess I'm just after a simple method for playing an animation backwards after the user presses the back button.
I'd just like to know what the Actionscript is for doing it simply + where to place the code.
Thanks in advance.
Link,
http://www.millimetre.com.au/mm_sample.fla
View Replies !
View Related
Playing An Animation In Reverse.
Hi, I'm pretty new to flash + especially Actionscripting in Flash...So I'd appreciate any help I can get.
I have an animation for a website (see link below) whereby a tape measure zooms in. I've made it reverse by adding in the same animation keyframes in the opposite sequence, but it's really added to my file size (almost doubled it). What I want to do is have it so you press the back button and the animation plays in reverse, zooming out to the beginning.
I've done a bit of searching on the forums to see if I could find an answer to this problem and there seem to be a lot of similar topics with different methods. I guess I'm just after a simple method for playing an animation backwards after the user presses the back button.
I'd just like to know what the Actionscript is for doing it simply + where to place the code.
Thanks in advance.
Link,
http://www.millimetre.com.au/mm_sample.fla
View Replies !
View Related
Playing An Animation In Reverse.
Hi, I'm pretty new to flash + especially Actionscripting in Flash...So I'd appreciate any help I can get.
I have an animation for a website (see link below) whereby a tape measure zooms in. I've made it reverse by adding in the same animation keyframes in the opposite sequence, but it's really added to my file size (almost doubled it). What I want to do is have it so you press the back button and the animation plays in reverse, zooming out to the beginning.
I've done a bit of searching on the forums to see if I could find an answer to this problem and there seem to be a lot of similar topics with different methods. I guess I'm just after a simple method for playing an animation backwards after the user presses the back button.
I'd just like to know what the Actionscript is for doing it simply + where to place the code.
Thanks in advance.
Link,
http://www.millimetre.com.au/mm_sample.fla
View Replies !
View Related
Reverse Animation On Buttons
Ok, I have a button that works like I want it, when you place your mouse over it, it does the animation like I wish, but it’s a long one, so if someone moves the mouse off it, it instantly goes back to frame one, instead of this, is there a way when someone removes the mouse from over the button, the animation will start playing backwards until it reaches frame 1, and it dosnt have to be a button, cuase im only useing a button cuase i just really want a picture with a roll over effect, which is what the button does.
my guess is i have to make an action script that says if mouse is not on button, set button.swf frame -1 or something like that
View Replies !
View Related
[F8] Reverse Animation On RollOut
Hi, Im creating a flash website and have just created some buttons from scratch. When rolled over the animation starts and works fine, but when you roll out the animation goes straight back to the start. Is there a way to reverse the animation so it doesnt just skip back? thanks
View Replies !
View Related
Play And Reverse Animation
Hey folks. Kinna well I am a newbie at the Flash. I am making a small portfolio site for myself, and have fumbled my way through it. My last project is scrolling script. Perhaps you guys can help.
I have some scrolling text as a MC. I want to create some buttons.One that makes the animation stop on rollover(knowthe script on that one), one that advances on rollover, and one that reverses on rollover. All of these I want the animation to resume on rollout. If there's any takers, I would appreciate it. Thanks
View Replies !
View Related
Reverse Animation For Movieclip
Hello!!
Im just starting out with Flash, so please forgive the ignorance!
I've read a few posts on here about reversing movie clips for rollovers, but can't seem to get the hang of it. I've made a simple example of what im trying to do, but it doesn't roll the image back again when the mouse leaves the movie area.
What am I doing wrong? Any help is appreciated,
JT
p.s. Attached is the example i'm trying to get working.
View Replies !
View Related
Help With Reverse Animation On Button
The buttons are animated with a movie clip inside each button and the movie clip plays on rollover, however I need this same movie clip inside the buttons to play reversed, when the cursor is moved away from the button.
I know how to do this with an instance but I already made each button and fooled around a thousand times with the animation and I do not wish to start over again!
I have only experimented with this type of action script before and I must say I am a little lost =(
Can anyone help me as to how I would go about doing this ?
Any coding would help.
I know there is a simple way of doing it with action script, but I have no more time to fool around and I need your assistance =P
If you could supply the code it would help me out.
(I can modify it to work with my page and my buttons)
Just need something to work off of.
Maybe a code I can put on the button, or whatever you can come up with.
For future reference,
thanks
Edited: 09/19/2008 at 04:43:32 AM by coffincup
View Replies !
View Related
Reverse On Mouse-over Animation?
I am having a problem. I made a mouse over animation where some text morphs to some other text when you move the mouse over it. The problem that I have is I want to make the text stop at the end of the animation and when I remove the mouse, it will go back to the original message. I am open to any suggestions, but i dont want to use any buttons. Please help. Thanks!
HrPrZ
View Replies !
View Related
SwapDepth/reverse Animation
See this example: http://www.templatemonster.com/flash...ates/8785.html
I figure I'll create a few tweened mcs with two stops (first and last frame) and set up them on the stage. And use the swapDepth function to swap the mc when rollover to swap the mc to highest depth and play the mc. I cannot find a good example function or better approach that will show how to reverse the mc's animation when rollout. Anybody care to point me to right direction, give me a function example, any tutorial or example file?
Much appreciated!
Jace
View Replies !
View Related
Rollout Reverse Animation
This is a little hard to explain so please bear with me.
I have a button and a movie clip. I want to tell target the mc using the RollOver and RollOut actions that I have applied to my button. However, I want the movieclip to reverse rather than have the mc just jump to a named frame where the animation is created in reverse.
If I can just get a script that will make the frames of that mc reverse rather than recreate the whole thing in reverse manually then it would say an awful lot of file space, also you wouldn't get that jerky motion if you were to roll off your button before the first sequence of the animation is played, thus making the mc jump to your rollout sequence before the RollOver sequence had finished. Am I making sence or just babbling?
Anyone who can help would be my new friend!!
View Replies !
View Related
Reverse Animation: Revisited
In reference to an earlier post regarding reverse animation, we seem to be having issues defining variables.
Looking for help making this code work in our scenario:
ActionScript Code:
stop();
var startFrame:Number = 154;
var endFrame:Number = 10;
this.gotoAndStop(startFrame);
//start the play head at advanced pos
function reverse() {
this.onEnterFrame = function() {
if (this._currentframe<=endFrame) {
trace("delete");
delete this.onEnterFrame;
} else {
trace("current "+this._currentframe);
trace(endFrame)
trace("reverse");
this.prevFrame();
}
};
}
reverse();
Source code can be downloaded here:
http://www.mindlightning.com/PWIT.fla
Thanks in advance.
View Replies !
View Related
Reverse Animation Problem.
Hey guys ... Im having a problem with this and is driving me kinda crazy ..
anyways here is what I've done so far ... I got my mainMenu ... with animations ... I got 4 buttons (MC) that each of them go to a certain frame label so for example I got M1 (M1 is a frameLabel) that goes to (about) M2 that goes to (Portoflio) and so on, each of these is a different Movie Clip with their own animation inside .... so when the animation of this MC (About, FrameLabel "M1")for example is done it loads the external SWF, inside of this MC I got the same 4 buttons of the main time line. so when I press the HOME Btn the movie goes back (in reverse). The thing that I cant do is come back to the _root. (main time line) and go to a certain Frame label in this case "f1" when the animation in reverse is done.
here is the code that I got in the first frame of the movieclip.
Code:
MovieClip.prototype.goBackwards = function() {
this.onEnterFrame = function() {
if (_currentframe > 0) {
prevFrame();
} else if (_currentframe == 1) {
_root.gotoAndStop("home");//why this doesnt want to go to the damn main time line !!!
delete this.onEnterFrame;
}
};
};
and the code for the button is (this code is in the last frame of the animation)
Code:
home.onRelease = function () {
unloadMovieNum(2);
goBackwards();
};
so its working, the thing is that it doenst go to the Frame label that I want ... it just Stop in frame 1. anyhelp would be appreciate.
by the way Im using Flash 8
thanks
View Replies !
View Related
Play New Animation And Reverse Previous Animation
Hey everyone. Brand new here. I am hoping someone can help me out with bringing new sections of a website into the display area, and moving the previous section out. Meaning, lets say I have two buttons, and the idea is when you click one, an animation of the content pops up from the bottom of the screen to show the viewer. Simple enough, I use gotoandplay like this:
topLevelButton1.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
section1.gotoAndPlay(2);
}
So, when someone clicks my topLevelButton1, section 1 moves up on the screen so its visable. This concept is done with 5 different buttons on my site. It works fine. The problem is, when there is already an section displaying on the screen, I need to LOWER that section BACK DOWN before the new section raises up to display when I click a different button.
How is this achieved? I understand that Im supposed to store the current animation as a temp movie clip, so that when I click a new button, Flash takes whatever is currently stored as the temp movie clip, and reverses it or plays that animation from a specific frame. I dont know how to go about this though... Help please?
View Replies !
View Related
Reverse Animation For Mouseoff Event
Small question...I can't seem to find any tutorials specifically on this matter yet i've seen it done on so many sites...
I have an animated button when mouseover, however once the mouse leaves the button area i want the animation to play backwards so that it smoothly transitions back to its idle state. Currently, once the mouseoff occurs, the button just goes back instantly to its normal state. How can i make it so that the animation setup in my mouseover will play backwards when the mouse is taken off the button?
View Replies !
View Related
Reverse Animation Before Loading Movie
Hello,
I searched for an answer but I couldn't find it.
So I hope one of the flash-gurus can help me.
My main movie has container mc
(instance: container) on the main page where I load all my external movies in.
I also have a mc with all my buttons in (instance: menu)
I reference the buttons from the main timeline.
here is the code:
Code:
menu.about.onRelease = function() {
if (_root.container != "about") {
_root.container.loadMovie("about.swf");
}
};
menu.services.onRelease = function() {
if (_root.container != "services") {
_root.container.loadMovie("services.swf");
}
};
menu.projects.onRelease = function() {
if (_root.container != "projects") {
_root.container.loadMovie("projects.swf");
}
};
menu.contact.onRelease = function() {
if (_root.container != "contact") {
_root.container.loadMovie("contact.swf");
}
};
What I would like to do is load the movie into "container" and if I click another category reverse the animation of the current movie and load a different movie into "container"
Thank you for your help.
View Replies !
View Related
Reverse The Animation While Mouse Rolls Out
i'm not sure if you understand my title up there, but i hope you do.
how do i do this?
http://senseofsight.com/btn.htm
when the mouse rolls out, it rewinds the animation, even when you roll out in the middle of the the animation.
btw, am i posting in the right forum? or should it be in the action scripts section??
View Replies !
View Related
[F8] Reverse Timeline Animation With Stops
Hello my forum buddies!
Have a little trouble with Flash similar to this simple example. I attached both, SWF as well as FLA files, and I would greatly appreciate if someone can assist me here...
The problem: There are two buttons on the screen, forward and backward actions. There are 7 stop actions on the main time line. When button "forward" is pressed, little stick-man moves to the first stop point and then stops... pressing "forward" again, allows that little man to move forward to the next first stop point. Everything works perfectly till the end Stop point number 7.
I would like to get this... when button "backward" is pressed, man should move back to the first stop point to his left. Right now, when button "Backward" is pressed, little man moves all the way back without stopping at any Stop point...
FLA file is attached and SWF can be checked here:
http://img469.imageshack.us/my.php?i...oblem01hq2.swf
Can this be easily solved ?
I appreciate any help ! Thanks in advance and you all have a wonderful rest of the day !
View Replies !
View Related
Using Actionscript To Play An Animation In Reverse
hello all!
i just join the forum so bare with me if im not as clear with my question right off -here it goes, ok im in the process of developing my third flash site the difference in this site and all the others is that im utilizing flash more, trying to take advantage of actionscript and i have a movieclip in which im presenting a slide show of pictures so to speak only its animated with fwd and rev buttons and as you probably have guessed i want to "play the animation in reverse" i know i can copy the frames reverse the sequence then send the playhead to a particular frame and play the animation in reverse that way but im sure there is a way to do it with actionscript -ive looked at the _currentFrame and _PrevFrame ?commands? but the only results ive come up with sends the playhead to a particular frame -as mentioned before im not too advanced with scripting but i am familiar with Lingo and some javaScript would a repeat loop be useful with either of the commands i mention earlier i.e. _currentFrame/_prevFrame hello all!
View Replies !
View Related
HELP: Reverse Animation On Early RollOut
this.onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
};
This code works great to reverse the animation on RollOut, but I need the animation to play entirely, even if RollOut occurs before the end.
How can I force the animation to play through on early RollOut?
View Replies !
View Related
Reverse Animation Using Button Hitarea
Hi there,
I'm a total noob to Actionscript / flash and i'm trying to put something together for my new site. Basically, what im trying to do is animate an image when the mouse is rolled over it, and animate it back out again when the mouse leaves the area.
Attached to this post are the two test files i'm working on. The first (titled working.fla) does exactly what im trying to do, but messes up when you run the mouse over the right-hand side of the movie area. The second (titled helpme.fla) was another test to see if I could get the same animation while hovering over a button instead of hovering over the movie clip.
So, the question is - is it possible to do this using a button as the 'hitarea' for the movie clip animation? And if so, how do I alter the included files to get this working?
Any help is greatly appreciated,
JT
View Replies !
View Related
Reverse Animation Scripting Help Badly Needed
Need some help, as usual, with action scripting...
here is the situation, I have a site and the home page is scene 1, to navigate to another section, it loads to scene 2 or scene 3 as clicked. On loading of the new scene or section, there is an animated transition to load the content etc. I want to program it so that when another section is clicked to load another page or scene, that before it goes to scene 3 or 4 or wherever, it plays the current scene backwards to unload it, then when it gets to frame 1 or frame whatever, it goes to the selected scene...
so in a nutshell, if you are at the Red section, which is scene 2, and you click a button to go to the Green section, which will load scene 3, scene 2 plays backwords from frame x to frame y, then loads scene 3 and that script would be for all of the buttons that load another scene...
make sense? I can't figure it out for the life of me without actually redrawing the scene...
can anyone help please?!?!
thanks,
Steve
View Replies !
View Related
Remember Button Click And Reverse Animation
Hi,
I have a website that is separated into sections. Each section starts with a frame label and has an animation. I want Flash to remember which button was clicked so that no matter what other button is clicked next, Flash will reverse the animation for the button they were on and then go to the new frame label that was clicked. I am using ActionScript 3.0 and I already have the functions and code added to the buttons, so the navigation works, I just need the reverse action. Can anyone help?
Thanks!
View Replies !
View Related
Play Animation Forward/reverse Between Specified Frames?
Hi!
I've just started out with Flash as I need to put together a front page menu for a website, which has a logo a little like a clock. The idea is that the 'minute hand' moves around to point at whichever option/button the user is hovering their pointer over....
... I've got a tweened animation of the 'minute hand' moving between all the options that it would have to move between, with a keyframe at each button that it would have to stop at if the user were hovering their mouse over it.
What I want it to do is move the 'hand' between buttons - maybe backwards, maybe forwards, maybe from frame 1 of the anim to the 30th, maybe from the 20th back to the 10th, depending on which button it is pointing to (the last button the mouse hovered over) and which button the user is now pointing at.
I'm hoping that there's some kind of variable that'll give me the current frame of the animation, and a command I can use to play from that frame to a desired frame (which I can execute from ActionScript attached to that relevant button) whether that be forwards or backwards.
Is this possible? If so, how? In theory it should be really simple to do, but I just can't seem to find the commands/access the anim's current frame value etc. I have experience of programming, but this is my first time with ActionScript/Flash!
ANY help appreciated!!
View Replies !
View Related
Please Help: Play New Animation, Reverse Old Animation
Hey everyone. Brand new here. I am hoping someone can help me out with bringing new sections of a website into the display area, and moving the previous section out. Meaning, lets say I have two buttons, and the idea is when you click one, an animation of the content pops up from the bottom of the screen to show the viewer. Simple enough, I use gotoandplay like this:
topLevelButton1.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
section1.gotoAndPlay(2);
}
So, when someone clicks my topLevelButton1, section 1 moves up on the screen so its visable. This concept is done with 5 different buttons on my site. It works fine. The problem is, when there is already an section displaying on the screen, I need to LOWER that section BACK DOWN before the new section raises up to display when I click a different button.
How is this achieved? I understand that Im supposed to store the current animation as a temp movie clip, so that when I click a new button, Flash takes whatever is currently stored as the temp movie clip, and reverses it or plays that animation from a specific frame. I dont know how to go about this though... Help please?
View Replies !
View Related
Problem With "reverse Animation" Button
Hi, I am having some trouble with a movie clip that has another movie clip inside it that serves as a button. The parent movie clip has the following code over it (not in any frames inside it):
on (rollOver) {move =1;}
on (rollOut) {move=0; }
onClipEvent(enterFrame) {
(move) ? nextFrame() : prevFrame();
}
..and inside the parent movie clip there's a layer with a "stop" action at the fist frame and at the last frame. What the above code does is to plays forward or backward the parent movie clip dependig on where the mouse is over it or not.
The problem is as follows: I have inside this parent movie clip another movie clip with a "onpress" event over it. When the button is pressed, a url is supposed to be opened. But when I click it, nothig happens. Even the nested movie clip has an small animation that doesnt plays.
This problem its driving me nuts!! Can anyone help me?
View Replies !
View Related
Wipe A Window Animation
hey guys .. i have a new little project that im looking for a push in the right direction and hoping someone here could offer some insight.
Basically i want to have a 'frosted window' and have the user be able to wipe the frost from the window and see an image thats underneath.
Now my issue is that im not sure what the best way to tackle this is ... would it be best to have the user creating a mask when the move the mouse over the window to show whats underneath. Or is there a better way to remove the frost ?
Thanks for any info you might have ...
View Replies !
View Related
Reverse MC?
Is there any way of getting a movie clip to play in reverse
Ive asigned a button to play a movie clip but I want the movie clip to play in reverse is this possible
View Replies !
View Related
Reverse The MC
What could be added to this code to keep the MC playing in reverse instead of moving back just one frame while the mouse is over the button?
on (rollOver) {
if (_currentframe>1) {
prevFrame();
}
}
on (rollOut) {
stop();
}
Thank you,
JF
View Replies !
View Related
|