This is a working demo of the action script used for my nav system
The idea is if you roll over a white box the sub menu fades in (in this case a red button)
Now my issue was found from me fiddling around to much.. the concept is if you roll over a second white box the first sub menu fades out as the second fades in...
Now the issue is.. sometimes if you move your mouse quickly over 2 or 3 boxes at once.. all the sub menus can be faded in at the same time... i need a way to prevent this... any ideas?
you could disable all the other on rollOver Actions until the button reaches the frame where it is stopped and showing.
I would use an entirely different approach though because I find it time consuming to edit and difficult to control the movie properly with code spread about like that.
Have a look at this alternative way...
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
I like where that's going.. however I don't think I want to control btn1 thru 3 from the first frame of the movie..
as in on(press) gotoAndStop(2);
there will be mutliple movie clips within each sub nav.. i guess the example would be.. 10 red buttons under each
I'm not sure how to edit what you've given me to accomedate that
gunco, nice but how is it more efficient when you have onEnterFrame actions contantly active?
Also the red buttons arn't clickable as they disapear on roll out of the movieClip that summons them and they have no code attached.
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
i know, i know!
my bad!
when he posted the question i "scanned" it quickly and only saw the words fade in, actionscript, roll over, prevent this and any ideas....
so sorry man! if u want to i will delete the masage i wrote....
Jordslaght, to show how to get this working properly as a navigation system I have posted another example. This file has 2 versions, the first runs a generic goto function for each button and the other allows you to execute a separate function for each button in the submenu.
To add links simply edit the buttonNames array and add the appropriatley named movieClips into the appropriate sub menu.
Follow the naming convention for all sub menus, buttons and frames and all should work fine...
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
Oh this is great!
this last version works exactly how i need it, much more efficient. a little above my skill level.. action script wise.. but this is great thank you
one quick question:
I would rather have the menu system simply fade in.. and have no scaling at all.. i'm trying to play witht hat but can't seem to make it work properlly.. thanks a lot
okay so not working as well as i had hoped...
perhaps it has to do with the scaling issue... i have small jpg's in each sub menu item (i'm using the individual functions version) and when the sub menu fades in to place.. after it's done the images vibrate.. it's a strange effect.. it's like it's not quite scaled all the way and it can't figure out which pixels to display the images with..
one that snaps to a pixel rather than .1 of a pixel, hopefully should fix any problems with using bitmap instead of vector graphics.
the other does the fade only.
Last edited by Lexicon; 09-24-2004 at 03:09 AM.
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?