Post Reply 
Help: How to create RollOut animations in Flash
Author Message
ProperBritish
Daddy Proper
Team DreamArts

Posts: 5,666.3250
Threads: 192
Joined: 19th Nov 2008
Reputation: -2.36574
E-Pigs: 147.7035
Offline
Post: #1
Help: How to create RollOut animations in Flash
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?


[Image: rsz_contrast.png]

Spoiler for More sigs:
[Image: 6xu74t8]
[Image: sig.php]

[Image: 656embk]
[Image: sig.png]
(This post was last modified: 22/03/2010 10:36 AM by ProperBritish.)
22/03/2010 10:34 AM
Find all posts by this user Quote this message in a reply
Cyonix
I'm No Longer Here...

Posts: 1,333.1456
Threads: 270
Joined: 12th Aug 2007
Reputation: -5.05677
E-Pigs: 43.9829
Offline
Post: #2
RE: Help: How to create RollOut animations in Flash
hmmm...methinks you need to catch a Geodude and have it use Defense Curl before using Rollout for maximum damage :P
22/03/2010 10:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ProperBritish
Daddy Proper
Team DreamArts

Posts: 5,666.3250
Threads: 192
Joined: 19th Nov 2008
Reputation: -2.36574
E-Pigs: 147.7035
Offline
Post: #3
RE: Help: How to create RollOut animations in Flash
not anything?

someone has to be able to do ActionScript here

[Image: rsz_contrast.png]

Spoiler for More sigs:
[Image: 6xu74t8]
[Image: sig.php]

[Image: 656embk]
[Image: sig.png]
22/03/2010 12:54 PM
Find all posts by this user Quote this message in a reply
Mythos
protoman

Posts: 573.1637
Threads: 31
Joined: 18th Apr 2007
Reputation: -1.8373
E-Pigs: 24.3694
Offline
Post: #4
RE: Help: How to create RollOut animations in Flash
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

[Image: Mythos3k.png]
22/03/2010 01:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ProperBritish
Daddy Proper
Team DreamArts

Posts: 5,666.3250
Threads: 192
Joined: 19th Nov 2008
Reputation: -2.36574
E-Pigs: 147.7035
Offline
Post: #5
RE: Help: How to create RollOut animations in Flash
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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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


[Image: rsz_contrast.png]

Spoiler for More sigs:
[Image: 6xu74t8]
[Image: sig.php]

[Image: 656embk]
[Image: sig.png]
22/03/2010 02:14 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: