all groups > macromedia flash sitedesign > april 2005 >
You're in the

macromedia flash sitedesign

group:

Flash Navigation How-To


Flash Navigation How-To Will Danger
4/29/2005 12:00:00 AM
macromedia flash sitedesign:
Hello everyone.

I am not exactly a newbie, but I am having some problems wrapping my head
around this one. I have actionscript expirience mostly from using Flex at
work, but not much expierience in *scripting movement* in the Flash IDE. I have
a client who wants a particular type of navigation, basically something similar
to or exactly like the global nav on this site:

http://www.f1play.com/main/index.html (look to the center-right).

This is what I have in actionscript thusfar:

onClipEvent(mouseMove) {
if (this._y < 100) {
if (this.hitTest( _root._xmouse, _root._ymouse, false)) {
this._y += 1 * 5;
}
}
}
(<-- that code is attached to the nav MC on the stage, it is not a frame
action)

It works in the sense that the navigation MC I have moves when I mouseover and
only when I mouseover the MC, and then it will only move when the mouse moves.
It does not however have the nifty 'ease' effect nor can I duplicate the way
that it 'jumps' to that particular spot on mouseover, based on the mouse
location. I dont want someone to do this for me, but I was wondering if any of
you guys had seen something like this in a tutorial (I have looked and not
found anything), or had any pointers for me. Am I headed in the right direction
do you think?

Any assistance would be greatly appreciated! If I am not at all clear about
what I am looking for and you need more info, please let me know.

Regards / Thanks in advance,
-Brett
Re: Flash Navigation How-To Will Danger
4/30/2005 12:00:00 AM
I think I have it! I figured I would post the updated source in case you wanted
to see what I ended up doing. Its pretty close to what I was going for, the
speed might be a little off, but the speed can be changed by messing with the
'speed' var in the code. All I did was add some more lines to that frame that
had the code originally.

Thanks again!

Source -- http://danger.dnsalias.net/experiment/scrollMenuRevised.zip
Re: Flash Navigation How-To droopy.ro
4/30/2005 7:46:44 AM
Hello,
I made a something that acts just like that menu.
of corse, the design is not even close, but I didn't had time to "spice" it
up.. anyway I was just trying to demonstrate you the way it can be done.

take a look at the page below and tell me if that is what you want it to be:
http://droopy.ro/exemples/scrol_menu.zip

you can then add averything, like real buttons to it..
I know will will try to modify it and will run into problems.. so when that
will happen contact me.
Re: Flash Navigation How-To Will Danger
4/30/2005 8:00:32 AM
Yes, that is indeed very close to what I am looking for. It seems to me that
the only thing needing to be added would be the 'easing' aspect of it. As luck
would have it, I have recently found a tutorial demonstrating that in a way
that may be easily inegrated with this. What you gave me is nice and simple and
should be easy to reverse engineer. I will let you know how it goes, and I will
let you know if I hit snags (I will be attempting this as soon as I wake in the
morning (and all day thereafter if need be)).

Thanks, I owe you one!

-B
Re: Flash Navigation How-To droopy.ro
4/30/2005 8:07:11 AM
no problem, it was fun to do this for you..
AddThis Social Bookmark Button