Creative FL Menus Pack Forum


box Creative FL Menus Pack
Creative FL Menus Pack is a package that contains the following products bundled at a special price: Creative FL Dropdown Menu, Creative FL Vertical Menu, Creative FL Tabbed Menu.

Find out more about Creative FL Menus Pack

Thread: Set the settings file via javascript?

title left
User Details
message
title right
Mike Morris

post date:
2011-10-14 15:26:38
I'm redesigning my website and I'm finding a need to set the settings file via java (Or even plain html through embed). I'm running into trouble with how the CMS system I'm using handles URLs and page content. Basically, the way the CMS system I'm using works is, you type in the html code and can use special variables that get converted into the content that those variables represent and this is all (The html code including the special variable html-style tags) stored in a database, and then when the user browses to the site everything is based on a URL that mimics actual folder structure in the URL, the CMS system then grabs the html code for the "page" that was requested and hands it out.

What I want to do is modify these html "pages" so that the absolute path can be passed to the menu component; otherwise setting the xml file setting to something like just "menu.xml" gets translated into the root folder of the website's menu.xml file. This doesn't work so well for sub-areas of the site that the menus will change. Any help would be greatly appreciated! Thanks in advance!
Elena Tepardea [Extend Studio]

post date:
2011-10-17 05:33:15
Hello,

If the xml is being generated before the flash is executed, it should work fine. Please try to generate it exactly like our xmls and that menu should work.

Regards,
Elena Tepardea
Mike Morris

post date:
2011-10-17 12:32:27
The XML is already generated, what I want to do is set the XML file setting via flashvars. I found that I can set the xmlFile parameter, but I don't know how to get the menu to redraw with that file.
Horea Radu [Extend Studio]

post date:
2011-10-25 10:22:26
Hi,

After setting the xmlFile parameter from ActionScript you have to call the init, createChildren and draw functions in order to redraw the menu. Here is an example:

mymenu.xmlFile = "menu.xml";
mymenu.init();
mymenu.createChildren();
mymenu.draw();

Please let me know if this works for you.

Best regards,
Horea RADU

Extend Studio
Mike Morris

post date:
2011-10-28 22:38:34
That was exactly what I was looking for. It worked perfectly! Thanks!