Knowledge Base

Important! All new questions are usually answered within the next business day.

Drop Down (Tree) Menu V3

(views: 12929)

Drop Down Menu V3 and Drop Down Tree Menu V3 are xml flash accordion menus featuring customized states, customized transitions and tweens. Here are all known issues for Drop Down Menu V3 and Drop Down Tree Menu V3, they should be similar, since basically it is the same component. If you have any questions that you think we should discuss here please let us know.



Go to different frames by pressing a menu item

(2007-08-17 - views: 3943)
Q: How can I go to a certain frame of my movie clip when I click on a menu item ?
A: This is possible by inserting an extra attribute in the xml file of the menu. In this example we added the "frame" attribute to our items, which we than read when an item is pressed. The frame can be identified either by frame number or by its label. This method can be used for both components: the Drop Down Tree Menu and the Drop Down Menu.
Files: DropDownMenuFrameNavigation.zip 


User Comments

go to a frame in a different MC.
posted by hagiki on 2008-03-09
Im trying to go to a frame in my root time line.
the attribute "frame" does not work.
How can I jump to frame number 2 in my root timeline?
To hagik
posted by negush on 2008-03-11
The "frame" attribute is found in the setup XML file of the menu. The value represents the frame number or frame label to which you want to navigate.

If you want to navigate to frame 2 of your root timeline, be sure to have the frame attribute in the XML file to the menu item you want to use for that action. Also make sure that you are calling gotoAndStop function of the _root object and not some other movie clip.

If still you don't manage to make it work, contact support here: http://www.jumpeyecomponents.com/contact.htm
AS3 Script for this?
posted by chrisvanderwall on 2009-07-17
Hi~
I noticed that this solution is posted for AS2 version of the drop down menu, and was wondering if there needed to be script changes to do this with AS3? If so, could you provide me an example? I tried what is available, and it outputs the following error: 1046: Type was not found or was not a compile-time constant: Void
Source- myEventListener.onPress = function(args:Object):Void {
AS3 sample code
posted by florodebat on 2009-07-17

Bellow is the AS3 code for that example:

stop();

import com.jumpeye.Events.DropDownMenuEvents;

accMenu.addEventListener(DropDownMenuEvents. ITEM_PRESS, pressHdl);

function pressHdl (evt: DropDownMenuEvents):void {

if (evt.item.frame !=undefined) {

gotoAndStop(evt.item.frame);
}
}

I hope this helps.
Argh...
posted by chrisvanderwall on 2009-07-17
I'm still having issues getting it working... following errors:

1046: Type was not found or was not a compile-time constant: DropDownMenuEvents.

function pressHdl (evt: DropDownMenuEvents):void {

Could you post a file? Thanks so much for your help! It is greatly appreciated!
woohoo!
posted by chrisvanderwall on 2009-07-20
Got it working, just had to purchase the full version... wouldn't work on the trial version for some reason... oh well, I love your products, and they're worth the money. Thanks for your help!


Login to post your comment login to post your comment

Back