Endless Paradigm

Full Version: Help: How to create RollOut animations in Flash
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been trying for ages to get a button to animate back to how it was, i have the tweens and everything, but no matter what i do it doesn't work. I tired parking a clip and playing it on rollOut, which worked, but meant the image below it wasn't on the 'over' state (as it was covering it, even though it was transparent until rollout) and it didnt fade in to being with.

i tried editing it by adding actionscript to the movie on the 'over' state of the button to no avail. when the mouse isn't on it it's not on the 'over' state anymore and cannot run the script. incidentally i wrote this:

Code:
on (rollOut){
          gotoAndPlay("FadeOut");
}


i applied it to the clip but of course it does not work. anyone with an idea help me?

hmmm...methinks you need to catch a Geodude and have it use Defense Curl before using Rollout for maximum damage :P
not anything?

someone has to be able to do ActionScript here
well i dunno how it is called in english, but you dun even need action script for that.. on the right in your library you can create a new button with 4 states: normal, hover, pressed and active.. hope that helps

if you wanted something else just drop me a message, can help ya with AS as well
Mythos Wrote:well i dunno how it is called in english, but you dun even need action script for that.. on the right in your library you can create a new button with 4 states: normal, hover, pressed and active.. hope that helps

if you wanted something else just drop me a message, can help ya with AS as well

yeah i tried that i can make it animate on hover

but upon leaving the hover state it cannot execute the AS to make it fade back. as it is not on the hover state anymore because you took the mouse off. i ended up making a plain movie clip and typing this in.

this was applied to frame 1 on the actions layer of the movieclip:

Code:
stop(); 

this.onEnterFrame = function(){
	if(rewind == true){
		prevFrame();
	}
}

this.onRollOver = function(){
	rewind = false;
	play();
}

this.onRollOut = function(){
	rewind = true;
}


and on the final frame was this:

Code:
stop();


[Image: capturexb.png]

movieclip timeline ^

keep this as reference or some thing i unno xD

Reference URL's