My account
Shopping cart
Knowledge base
Support

Knowledge Base

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

Accordion (Tree) Menu V3

(views: 25374)

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: 9897)
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 


User Comments

AutoLoad Content
posted by benstyles on 2008-04-18
This demo works great - but how do I automatically pull in a movie using the XML itemIndex as a reference?
load flv videos
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
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
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
posted by delta120 on 2008-08-28
And how can i get the scrollbar if my menu list is more..Plz HELP
flv help
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
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.
item selected++
posted by urban101 on 2010-01-29
i'm using the accordion for my as3 video playlist. Everything is going Great. I have my player set to auto play the first clip, on completion it auto plays the next clip, and next, and so on.

How do i make the selected state of the submenu button auto highlight the assigned title on play?

something like.

if (evt.item.clip == selected){
hightlight.evt.item.clip
}

any help would be great.
thanks
Load movies on item select in AS3?
posted by chara on 2010-03-05
hello,
the code for this function described above doesn´t work in AS3. please be so helpful and post it in AS3. that would be really great.
thank you!
AS3 code
posted by florodebat on 2010-03-08
the code above can be used only with the AS2 version of the component. If you want to use the above example along with the AS3 version of the component then you should try open a new support ticket attach, the order id and someone will help you to translate that example for the AS3 version of the component.

http://www.jumpeyecomponents.com/support/open.php


Login to post your comment login to post your comment

Other questions in this item

Call JavaScript from XML Open menu item pages into target - "_self" Can I add a rollover sound? Item description from XML Change Text Color on Rollover Insert a line break into label Use hand cursor on menu Go to different frames by pressing a menu item Add different styles for each main items. Transparent background menu Align header text to right Go to different frames by pressing a menu item Disable-Enable Accordion (Tree) Menu V3 Keep the Accordion (Tree) Menu V3 vertically aligned How do I add the AccordionTreeMenuV3 on stage in runtime? Referencing item's textfield in Accordion (Tree) Menu V3 Underline On Rollover Use hand cursor on menu Scene navigation Adding icons Accordion Tree Menu expandAll() Automatic Collapse Add a fixed item under the menu acc.height not updated? Selected item level How do I add the AccordionTreeMenuV3AS3 from class file to stage hotwo: submenus already expanded on activation? how to change fontsize Animated items clickItem() and expandItem() do not execute actions of menu item Get the type of the selected item Letter kerning Autoexpand on Start Change the position of the menu icons Go To First Child When Select Top Level Menu Item Open menu upwards Children of a menu item Change the position of the folder icons Rotated text for menu items Menu Item visibility / disable Reference to text fields within menu items Step backwards and forwards through menu Spacing between menu items Accordion menu accurate size Letter kerning Title on multiple lines

Back