PDA

View Full Version : How to make button like here...



Um Design
November 22nd, 2005, 05:55 PM
On this site you'll see the pink button on the left side of the screen where is written MAXadsl (if you can't see it refresh few times, because advertise are coming random I think)

http://www.t-com.hr/

When you roll over, small animations plays.

How can I do that?

TheCanadian
November 22nd, 2005, 06:07 PM
myMC.onRollOver = function(){
this.nextFrame();
}
Then simply use the stop function on the first frame of your movie clip.

rhamej
November 22nd, 2005, 06:49 PM
Man thats an alwful pink site. Hurts my eyeballs :cantlook:

Um Design
November 23rd, 2005, 02:47 PM
Yes, it our phone provider, for home phones, but I hate them. I only like their flash button! =))

Um Design
November 23rd, 2005, 04:34 PM
myMC.onRollOver = function(){
this.nextFrame();
}
Then simply use the stop function on the first frame of your movie clip.

I didn't understand quite well, so I did it like this way:

First animation I have made form 1 frame to 35 frame, on 35 frame I have insert GotoAndPlay (1);
On 36 frame to frame 100 I have insert "roll over ANimation."

On button I have insert this:
on (rollOver) {
gotoAndPlay(36);
}

It is the same thing like they did on their site, but the most simle way, am I right?

Um Design
November 23rd, 2005, 05:00 PM
I have also this:

http://www.um-design.com/samples/Um.fla

Only there is one thing in this button code. How can I "hide" or remove button after animation is playing?
Because I would like to do buton like onthe site that I have gave you in the first post of this topic.
Because, if you look the button from that site, you'll see that after you go over with your mouse, text "MAXadsl" (button) just disapar and animation is played.
But if you look on my example here, you'll see that my button doesn't disapear. why?