Search  

ADVANCED XML HORIZONTAL ACCORDION MENU

HomeBrowse CategoriesFlashMenus & ButtonsHorizontal MenusAdvanced XML Horizontal Accordion Menu
Full_screen_preview

Advanced XML Horizontal Accordion Menu

– the only differences between the preview here on flashden and the example are the movieclips that are on the stage and the xml content
the ActionScript code is the same!!!!!
– the example files are included in the download package



UPDATE – 08.09.2008 (please redownload)

    - added support for 5 types of “onClick” actions

Features:

  • 2 level menu
  • XML driven
  • Dynamic: u can have as many items as u want (both main menu and submenu) with a variable caption length
  • The main menu items can be with/without actions on click
  • When u click on a submenu item, the “accordion behavior” stops (the menu freezes and it starts rearranging only when u rollOver another main menu item)
  • =NEW= The actions (set via xml) that this menu supports are:
    – open link in the same window
    – open link in a new window
    – load external content (jpg,png,swf) into ANY movieclip thats on the stage
    – play a frame (designated by number or name) from ANY movieclip thats on the stage
  • All the menu items have no background; its just text, so u can put the menu over anything without having “color conflicts”
  • U can easelly change features (such as position, item spacing etc)

Files included:

  • EXAMPLE files
  • HELP file
  • FLA file
  • AS files
  • XML file

P.S. The published size is so big due to the background. Without it, I would be 60kb.

If u like this one, check out my PORTFOLIO

Posted 5 months ago

Hi !

Beautiful menu ! Exactlly what I was looking for.

I still have a problem. I want the links to go in the “body” of my site… How do i make the urls not open in a new window ?

Peace

Yves

Posted 2 months ago

In file: menu.as

replace: getURL(tD[this._parent.mainMenuPosition].path, “_blank”;); with: getURL(tD[this._parent.mainMenuPosition].path, “_self”;);

and

replace: getURL(tD [this.sMenuPosition].path, “_blank”;); with: getURL(tD [this.sMenuPosition].path, “_self”;);

thats all ;)

Posted 2 months ago

hey there!! really good menu.

but i have a question… what do i have to do to load Movieclips in a target instead of HTML trough XML ??

Thanks.

Posted about 1 month ago

Thanks Axels for the answer !

But it doesn’t work actually… Certainly because I have 3 frames “banner”, “body” and “footer”. The menu is in the “banner”.

I try a lot of things but I find no solutions by now.

Help

Thanks

Yves

Posted about 1 month ago

how do you get the nav to open in the same window and not a new window? love the navigation…..

Posted about 1 month ago

How do i make the urls not open in a new window?! which file should i open and what changes should i make? thanks again. I changed the file from blank to self but it does not work, can any one out there please help a brother out?

Thanks

Posted about 1 month ago

Love the file. Have been tinkering with it. No problem grabbing the assets and using it in my fla. Looks like there are others who want to know if the links can load in swfs. That would be my question as well. I would like to load in swfs into a target blank movie clip. I know how to do this traditionally but not with dynamic xml set up like this. Could you shed some lite. Thanks!

Posted about 1 month ago

okay so what i have so far the submenu click action is

this.createEmptyMovieClip(“contents”, this.getNextHighestDepth(), {_x:700, _y:400,_alpha:100, _xscale:100, _yscale:100}); contents.loadMovie(tD [this.sMenuPosition].path);

then I’m lost…..

Posted about 1 month ago

Disregard my last post. I have seemed to get this working.

Posted about 1 month ago

To everyone who’s having difficulty with targeting “_self” -

Have you figured it out or received helpful advice that pointed you in the right direction? I too have my site set up with this (awesome) flash menu in the header and an html body. I’ve tried MANY tweaks to both the xml file and actionscript file but still cannot get the menu to call new pages into the same browser window. If it makes a difference that I am using this menu in a site that is not entirely flash, what file and lines of code do I need to manipulate? I’m sure the solution is embarrassingly simple but if anyone has solved this problem or can point me to the right resources it would be MUCH appreciated!!

To the author of this (awesome) flash menu -

This seems to be a recurring question. If possible, might you address it yourself? Help from THE source himself would knock this common non-pro roadblock out. Thanks!!

Posted about 1 month ago

Sorry for posting sQrt121 – I went back to help file and you had the loading examples there. Voila! I just had to get used to how you were using the xml parser. That’s what was blowing my mind. Now I see it in your help file. I did loadMovie and it works but will implement the Moviecliploader instead. Man if I had just went to help file in the beginning!!! Well it was nice to fgure it out without though. GREAT menu!!

Posted about 1 month ago

Salimas – I’m almost postive you have to have the flash menu on each html page.

here’s what I did for testing – duplicate your index page and name it index3.html. Enter that name, “index3.html” into the xml wherever you want in the tree. Save it. Now open up your menu.as and go to line 301 and simply change “_blank” to “_self”. Save it and export the main.fla You should do this in the submenu area which is around line 435 in menu.as. Always save and make a new movie when you edit the .as file. Now if you open the index.html and click on the nav item you edited in the xml it should open the same window. Hope that helps :)

Posted about 1 month ago

Hey Copperdog, thanks for your response! By “save and make a new movie” do you mean simply open up the flash file and export a new .swf?

Posted about 1 month ago

Hello,

Geat job, very nice !!! :)

How can i add a sound for the buttons please ???

Posted about 1 month ago
UPDATE – 08.09.2008 (please redownload)
    - added support for 5 types of “onClick” actions
sQrt121 Posted about 1 month ago
UPDATE – 08.09.2008 (please redownload)
    - added support for 5 types of “onClick” actions
sQrt121 Posted about 1 month ago

sry about that im drunk :P @Icarus:
-for the “onClick” sound update the “click” sound in the .fla
-for the “onRollOverk” sound update the “rollOver” sound in the .fla
sQrt121

Posted about 1 month ago

hi sQrt121 thanks for your perfect file!

i have a small question for u…i’m newbie to fla and i try hard to work out my website…

i have a small problem i use ur menu with another file that i bought from flashden that other file its an align movieclip script so…i put ur menu into of this movieclips and i want to load an swf file into another movieclip in the same file…i know that my english issss bad and i know that u maybe not understanding me….with 2 words i have ur menu into a moveiclip and i want to load from ur menu an swf file into another moveiclip… how can i do that?

if u understanding me…..help.

thank g.d.

Posted about 1 month ago

@intros If i understand correctly u want to load an external swf into a movieclip thats on the stage. if this is indeed the case please redownload the item (if u dont have the updated version) and follow the instructions in the help file

Posted about 1 month ago

Hi! It is possible to center the menu?

Posted 24 days ago

Yveress :

Just write where in target ( like _blank or _self ) name of your frame > body

it shoud look like this

getURL(tD[this._parent.mainMenuPosition].path, “body”;);

and getURL(tD [this.sMenuPosition].path, “body”;);

i dont have real codes so i just copied them from comment at the top…. but it must work now!

Posted 22 days ago

@ eazye
any kind of menu centering, whether u refer to a simple centering of the menu as a whole, in relation to the stage width, or an “on deployment” centering, requires additional actionscript programing. however i believe that the latter method of centering would not be very user friendly as the menu expands and collapses on “rollOver” / “rollOut” events.

i hope i understood ur question right and my answer is comprehensible :)
sQrt121

Posted 22 days ago

Salimas~

Yep! :)

Posted 22 days ago

Hi There

Perfect menu, but have one question, how can I load content into a frame (content) on my frameset?

Kind regards mikkel

Posted 21 days ago

Hey,

I am not exactly sure what is causing the issue, but I have the menu, which is great menu but it appears to have a hick up. It doesn’t appear properly in certain versions of firefox and most internet explorers (with IE if I hit reset it shows up fine). It appears as the menu is not positioning itself well, it is too high and the text is squeezed together. I would appreciate you checking out www.cjwprogression.ca and just maybe give me a suggestion as to the potential issues it could be.

Thanks

Posted 8 days ago

@ warden
hey,
the menu is working in different browsers (do a test with this preview). so i guess the problem is with ur file. unfortunately, based only on what i see on ur site, i dont know what could cause that…
sry man,

sQrt121

Posted 8 days ago

k thanx for taking a look,

again great file

Posted 5 days ago