Flash components Flash files Menus & Buttons

two_levels_menu_07_xml_driven

$8.00
By purchasing and downloading this license, you are entitled, as buyer, to use the product in ONE SINGLE NON- COMMERCIAL PROJECT - details
ID: 9619 | Views: 278 | Downloads: 0
Or

morephilipshuangfei
Uploaded By: philipshuangfei Author
* KEY CODE OF THE FLA FILE

arrStyle:Array (the array variable is consist of three array variables which loading from xml file and seperate the xml data into three data type:color array is first variable,int array is the second one and string type is the last one);
arrMenus:Array (the menu data coming from xml file);
arr_params:Array (the other parameters for the menu);
// you can adjust any one params in array variable arr_param,and details below
// arr_params[0]: the max width of all menus;
// arr_params[1]: the max height of all menus;
// arr_params[2]: the width of each menu;
// arr_params[3]: the height of each menu;
// arr_params[4]: the radius of the round conner of the first and last menu;
// arr_params[5]: the gradient of the menu[1.is gradient;0.not gradient];
// arr_params[6]: the border width of each menu;
// arr_params[7]: you don't have to set the value,cause the function inside is using it;
// arr_params[8]: the space width between menus;
mm:menuLoader (the class from script file "menuLoader")
numWidth:Number (get or set the width of all menu length, ordinary you should set the width of the stage's width first)
numHeight:Number (get or set the height of all menu height, ordinary you should set the height of the stage's height first)
xmlManager:xmlManger (the class from script file "xmlManager" which's main function is to load the xml file )
xmlManager.LoadXML (set the xml file name )

Note: when the stage is resized, you also have to set two variable("numWidth","numHeight")
After variable "numWidth" is set, the function will automatically delete some menu which'position exceed the all length.
so do the variable "numHeight" ,but differently some sub menu will be deleted

* XML FILE SETTINGS
.
.

CompanyInstruction (the name of the main menu)
http://www.baidu.com (the url of the main menu)
(the submenu items of the main menu)

.


* CONTACT TO ME
EMail:hx7777@gmail.com
MSN :philipshuangfei@hotmail.com (on the line all the time)
if you are in trouble please contact to me

ASK Ask a question & Live a coment (Public)

more

Do you have any comment or questions about philipshuangfei file?


Please register & login before you post!