PDA

View Full Version : Simple question about buttons :)


aroh2004
03-01-2004, 01:34 AM
Hello everybody... I'm new to the forum and new to flash and new to action script and as it seem, new to everything and I really need help.

I'm trying to do something very simple that I saw in one page... actually if anybody wants to see the page, the URL is: http://www.hybride.com

What I'm trying to do is the effect of the links in the navigation bar of that site. The small arrows that appear above the link when you put your mouse over them.

I already achieve to make the effect when the mouse is over the links, but I can’t make the effect when you take your mouse outside the area of the link. That is, the same arrow movement but in reverse.

This is what I have done already: I made the links and made them symbols. Then I clicked twice with the mouse primary button and a new window was opened. There I chose the Over function and pasted and video clip of the arrow I made in another flash document. Now, I know something about javascript and there the onMouseDown was used to tell the browser that when you took your mouse off the link something should happened, but here the Down function does something very different. So I don’t know how to make the effect I want.

I’m attaching the .fla file here of what I’m doing so you can understand what I have done.

Please… can anybody help me?

TIA

Antonio R.

neonleif
03-01-2004, 01:51 AM
I'm not sure I understand what effect you want, but you might want to have a look at the other button functions like onRelease.

jubei
03-01-2004, 09:07 PM
The way they've made those buttons on that site is fairly simple.

In a Flash button is up, over, down and hit frames.

On the up frame, they put an animation of the arrows moving up out of the box. This animation plays once.

On the over frame, they put the animation of the arrows moving into the box, and this one plays once as well.

And that's it. If you refresh the page, you'll see it starts by playing the arrows moving out of the button, which is what reveals that it's in the up frame.

Hope that helps.

free mojo
03-04-2004, 03:13 PM
very nice site i have to say