This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > April 2005 > Flash Navigation How-To
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Flash Navigation How-To
|
|
| Will Danger 2005-04-29, 7:21 pm |
| 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
| |
| droopy.ro 2005-04-30, 7:30 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.
| |
| Will Danger 2005-04-30, 7:30 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
| |
| droopy.ro 2005-04-30, 7:30 am |
| no problem, it was fun to do this for you..
in case you want to contact me do it by email...droopy@droopy.ro
| |
| Will Danger 2005-04-30, 11:15 pm |
| 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/experime...MenuRevised.zip
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|