View Full Version : flash menu problems
Dovey
07-15-2007, 03:16 PM
hi guys, i'm having problems with the coding for a flash menu in a project i'm working on, basically it only half works! when you hover over one of the nav titles the menu is animated to expand and reveal a list of sub catagories, and then close up again when the mouse moves away from the link. It works when the mouse hovers over the link and expands but when the mouse moves away it just stays the same? Any ideas?
stop();
technique.onRollOver = function(){
gotoAndPlay("tech");
};
technique.onRollOut = function(){
gotoAndStop("1");
};
this code is in the first frame of the menus timeline
thanks
_Aerospace_Eng_
07-16-2007, 08:04 AM
It should be
technique.onRollOut = function(){
gotoAndStop(1);
};
Having the 1 in quotes assumes that you have a frame label that is simple "1"
Dovey
07-16-2007, 05:05 PM
Hi Aero, thanks for your reply. I did have the one in brackets without quotation marks at the start, and that wasn't working. Then i tried a load of different frame label names and the last one i tried was simply "1"... but i had no luck with any of them? i just don't understand why the fist part works (hover over and the sub menu appears) and the second part doesn't? very strange. how can upload the fla file so you can see the whole thing? I mean i might be making some schoolboy error and just not realize
Thanks
_Aerospace_Eng_
07-16-2007, 07:52 PM
How big is the fla file? If its no larger than 50kb then you can put it in a zip file and upload it that through the go advanced post section. If its larger than that then you would have to find a file hosting service some where.
Dovey
07-17-2007, 10:19 AM
i took the menu out and zipped it up and its now 48kb. The one you need to look at is called Main Menu Mov (in the library) Any help would be ace.. Thanks
_Aerospace_Eng_
07-18-2007, 09:35 AM
Hmm you seem to have made you menu in quite an ackward way. I think you should build MENU MOV on the main timeline rather than build everything in MENU_MOV and then drag the instance out to the main timeline.
Dovey
07-18-2007, 11:10 AM
i was going to do it that way originally, then i thought if i'm animating the menu in the main timeline.. what if you use the menu for the first time and select an item from the sub catagories, it would then take you to the section on the timeline which displays that info. Then if you hovered over the menu to select another topic it would jump to where the menu is animated on the timeline and the information that was on the page would disappear. Do you know what i mean? Is there anyway around this?
Thanks
_Aerospace_Eng_
07-18-2007, 11:16 AM
Start using instance names on everything. Then in the actionscript console you will see a button that looks like a target, third one from the left. It will say "Insert Target" when you mouse over it. To use it though everything needs to have an instance name.
Dovey
07-18-2007, 12:39 PM
cheers aero will give that a go and let you know how i get on
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.