Knowledge Base |
Important! All new questions are usually answered within the next business day.
Accordion (Tree) Menu V3
(views: 7465)
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.
Load movies on item select
(2008-01-14 - views: 1458)
Q: How can I use the accordion tree menu to load movies into a content box for a flash website?
A: Each menu item is created using the <item> node from the setup xml file. That node can contain different attributes with different values. You can use listeners to get the selected menu item (either "onPress" or "onRelease") and then read the item's properties.
For example, you could add an extra attribute to each menu item to store the path and file name of the content you want to load:
...
<main>
<item title="Files to load">
<item title="Load First Flash Movie" path="First.swf"/>
<item title="Load Second Flash Movie" path="Second.swf"/>
</item>
...
When a menu item has been pressed, you can detect that event and find out the value of the path attribute:
var listener:Object = new Object();
listener.onRelease = function(evt:Object):Void {
if (evt.item.path != undefined) {
container_mc.loadMovie(evt.item.path);
}
}
myMenu.addEventListener("onRelease", listener);
The attached example file uses the drop down tree menu to load two external flash movies. Off course your code of the onRelease event handler can be changes so you can attach internal movie clips or do whatever you need to do.
Files: ATM_LoadContent.zip
For example, you could add an extra attribute to each menu item to store the path and file name of the content you want to load:
...
<main>
<item title="Files to load">
<item title="Load First Flash Movie" path="First.swf"/>
<item title="Load Second Flash Movie" path="Second.swf"/>
</item>
...
When a menu item has been pressed, you can detect that event and find out the value of the path attribute:
var listener:Object = new Object();
listener.onRelease = function(evt:Object):Void {
if (evt.item.path != undefined) {
container_mc.loadMovie(evt.item.path);
}
}
myMenu.addEventListener("onRelease", listener);
The attached example file uses the drop down tree menu to load two external flash movies. Off course your code of the onRelease event handler can be changes so you can attach internal movie clips or do whatever you need to do.
Files: ATM_LoadContent.zip
User Comments
load flv videos
I am looking for these files .but i need flv files to be loaded there instead of swf files loading inside there.......
PLz help me ..........
posted by delta120 on 2008-08-28
I am looking for these files .but i need flv files to be loaded there instead of swf files loading inside there.......
PLz help me ..........
load flv videos
If you would like to load .flv clips you can do that. Just specify the files you want to load in the .xml file and modify the onRelease handler to load the .flv files into your flv player.
posted by negush on 2008-08-28
If you would like to load .flv clips you can do that. Just specify the files you want to load in the .xml file and modify the onRelease handler to load the .flv files into your flv player.
load flv videos
Hi,
Sorry to disturb u again Sir,
Please help me i am not a good flash programmer.
i have edited xml file like this <item title="First flash file" path="1.flv"/>
from downloaded file of transparentMenu.zip bec i need transparent menu...and i pasted the srcipt from the ATM_LoadContent.zip in the frist frame of transparentMenu.fla
And i dont know how to edit the flash code.please paste the code here so that i will edit there in flash how to modify the onRelease handler to load the .flv files into my flv player..i have dragged flvplayer component inside flash,from there i dont know what to do..
Plz save my job....
posted by delta120 on 2008-08-28
Hi,
Sorry to disturb u again Sir,
Please help me i am not a good flash programmer.
i have edited xml file like this <item title="First flash file" path="1.flv"/>
from downloaded file of transparentMenu.zip bec i need transparent menu...and i pasted the srcipt from the ATM_LoadContent.zip in the frist frame of transparentMenu.fla
And i dont know how to edit the flash code.please paste the code here so that i will edit there in flash how to modify the onRelease handler to load the .flv files into my flv player..i have dragged flvplayer component inside flash,from there i dont know what to do..
Plz save my job....
flv
And how can i get the scrollbar if my menu list is more..Plz HELP
posted by delta120 on 2008-08-28
And how can i get the scrollbar if my menu list is more..Plz HELP
flv help
big list scroll:
if the menu list is more with lot of submenus then waht is the possibility to see all the list in flash it is going i the bootm of flash and we are unable to see that....
can we get a scrollbar to view complete list of treemenu
posted by delta120 on 2008-08-28
big list scroll:
if the menu list is more with lot of submenus then waht is the possibility to see all the list in flash it is going i the bootm of flash and we are unable to see that....
can we get a scrollbar to view complete list of treemenu
@delta120
I didn't see any of the components you ask about in your downloads list. I cannot help you with those problems because we only offer free support to our clients. Please send an email to the support team together with the order id you received after purchasing our components: http://www.jumpeyecomponents.com/contact.htm.
Thank you for your understanding.
posted by negush on 2008-08-29
I didn't see any of the components you ask about in your downloads list. I cannot help you with those problems because we only offer free support to our clients. Please send an email to the support team together with the order id you received after purchasing our components: http://www.jumpeyecomponents.com/contact.htm.
Thank you for your understanding.
Login to post your comment
Other questions in this item:
Call JavaScript from XML Open menu item pages into target - "_self" Transparent background menu Use hand cursor on menu Item description from XML Can I add a rollover sound? Go to different frames by pressing a menu item Scene navigation Referencing item's textfield in Accordion (Tree) Menu V3 Animated items Keep the Accordion (Tree) Menu V3 vertically aligned Disable-Enable Accordion (Tree) Menu V3 Add different styles for each main items. Adding icons Underline On Rollover how to change fontsize Selected item level Add a fixed item under the menu Autoexpand on Start How do I add the AccordionTreeMenuV3AS3 from class file to stage How do I add the AccordionTreeMenuV3 on stage in runtime? Get the type of the selected item Change Text Color on Rollover Children of a menu item acc.height not updated? Automatic Collapse hotwo: submenus already expanded on activation? Letter kerning Align header text to right Insert a line break into label Go To First Child When Select Top Level Menu Item Reference to text fields within menu items Change the position of the menu icons Change the position of the folder icons Open menu upwards Spacing between menu items Step backwards and forwards through menu Use hand cursor on menu Accordion Tree Menu expandAll() Rotated text for menu items clickItem() and expandItem() do not execute actions of menu item Accordion menu accurate size Menu Item visibility / disable Letter kerningMenu |
|
|


This demo works great - but how do I automatically pull in a movie using the XML itemIndex as a reference?