Knowledge Base |
Important! All new questions are usually answered within the next business day.
Accordion (Tree) Menu V3
(views: 18228)
Accordion Menu V3 and Accordion Tree Menu V3 are xml flash accordion menus featuring customized states, customized transitions and tweens. Here are all known issues for Accordion Menu V3 and Accordion 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.
Call JavaScript from XML
(2007-07-06 - views: 12328)
Q: How can i call JavaScript function from XML?
A: Nothing more simple. You have to place your JavaScript code in url param in xml like this:
<item title="new Item" url="javascript:yourFunction('This alert is from XML')" target="_self">
In order to make this example functionable you have to set target param to indicate where is your JavaScript function is located. If you have your target = "_blank" it will search for your JavaScript function in a blank HTML page.User Comments
dispatch a click event
Yes, it is possible to dispatch a click event for the AS2 component. Just use the dispatchEvent method of the component to dispatch the desired event and you can also pass any parameters you like through the event object:
myMenu.dispatchEvent( { target:myMenu, type:"onRelease", item:myMenu.items[0], anotherParam:"value" } );
The previous example triggers an "onRelease" event on one of the menu items and also passes along a new parameter to the event handler function called "anotherParam".
posted by negush on 2008-05-12
Yes, it is possible to dispatch a click event for the AS2 component. Just use the dispatchEvent method of the component to dispatch the desired event and you can also pass any parameters you like through the event object:
myMenu.dispatchEvent( { target:myMenu, type:"onRelease", item:myMenu.items[0], anotherParam:"value" } );
The previous example triggers an "onRelease" event on one of the menu items and also passes along a new parameter to the event handler function called "anotherParam".
Slidehow xml calling javascript
is this possible for a line like this on the xmlslideshowv3 as2.0??
javascript:NewWindow=window.open('promotion1.html','newWin','width=600,height=600,left=0,top=0,toolbar=No,location=No,scrollbars=Yes,status=Yes,resizable=Yes,fullscreen=No'); NewWindow.focus();void(0);
Ive tried it the same way with the accordian tree but it doesnt work, infact the gallery doesnt appear at all.
posted by stereotypical on 2009-11-10
is this possible for a line like this on the xmlslideshowv3 as2.0??
javascript:NewWindow=window.open('promotion1.html','newWin','width=600,height=600,left=0,top=0,toolbar=No,location=No,scrollbars=Yes,status=Yes,resizable=Yes,fullscreen=No'); NewWindow.focus();void(0);
Ive tried it the same way with the accordian tree but it doesnt work, infact the gallery doesnt appear at all.
Slidehow xml calling javascript
Sorry for the late reply - it's more advisable to write us using the ticket system because we don't guarantee 100% response here.
Please open a new support ticket and write there about that problem and someone will help you to solve it. Thank you.
http://www.jumpeyecomponents.com/support/open.php
posted by florodebat on 2009-11-18
Sorry for the late reply - it's more advisable to write us using the ticket system because we don't guarantee 100% response here.
Please open a new support ticket and write there about that problem and someone will help you to solve it. Thank you.
http://www.jumpeyecomponents.com/support/open.php
Login to post your comment



Is it possible to dispatch a click event for a specific item from a movie clip?