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 


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.


Login to post your comment login to post your comment



Back

Knowledge Base Search

Enter keywords bellow:
Advanced Search

Menu

Special Offer

Special Offer - All in one Jumpeye Components bundle!

Get the JC Master Collection Now!

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign