So I have an existing flash menu and want to just add a submenu under two of the navigation buttons.
I just cant figure out how to achieve exactly what i want with the submenu function. I need the submenu when hovered over to activate obviously the submenu tween and on roll out the menu to tween out.
But the part that is becoming confusing for me is when the submenu button is clicked I want the navigation button at the top to stay in roll over state (IE. Selected) but just the submenu tween to tween out, and the roll over of the submenu tween to still be able to be activated.
Here is the existing actionscript on the menu buttons:
This obviously works to make it so if the page number which is set on a separate layer equals the link the rollout (s2) tween is not played so it stays selected when that is the page they are on.Code:on (rollOver) { if (_root.link<>page) { gotoAndPlay("s1"); } } on (releaseOutside, rollOut) { if (_root.link<>page) { gotoAndPlay("s5"); } if (_root.link=page) { gotoAndStop("s3"); } } on (release) { if (_root.link<>page && _root.G<>1) { _root.G = 1; _parent["item"+_root.link].gotoAndPlay("s2"); _root.link = page; _root.play(); } }
My idea was to create my submenu tween and label it s2 and then where just the main navigation button tweens out label as s3, and also label the frame right before the submenu tweens down as s4. Am I approaching this right because it does not feel right.





Bookmarks