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]: maxwidth of the entire menu; // arr_params[1]: maxheight of the entire menu; // arr_params[2]: width of each menu; // arr_params[3]: height of each menu; // arr_params[4]: the name of the mc in the parent of this stage from which you can import swf file; mm:menuLoader (the class from script file "menuLoader") 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: after variable "arr_params[0]" is set, the function will automatically delete some menu which'position exceed the all length
To change the width of the menu bar, you have to adjust both the array variable named "arr_params[0]" and the attribute width of the stage .
* XML FILE SETTINGS . 0xffffff (the color of the text of menu when the mouse roll over the menu) 0xD47206 (the bgcolor of the menu when the mouse roll over the menu) 1 (the number of the active item in menu of which the status is roll over) 0 (horizone menu or vertical menu option,1-horizone;0-vertical) 0 (option to determine to load swf file or open a url window,1-url window;0-swf file) 1 (option to determine the menu has sound effect) 1 (option to determine the menu has background) . .
HOME ( the caption of the menu ) http://www.google.com ( the url of the menu ) _blank ( the window of the menu ) 3.swf ( the name of the other swf file to load when click the menu ) 5 (the frame number of the other swf file to load ) mc_swf (the name of the movieclip in the parent swf file of this stage from which you can import swf file)
.
* 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
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]: maxwidth of the entire menu;
// arr_params[1]: maxheight of the entire menu;
// arr_params[2]: width of each menu;
// arr_params[3]: height of each menu;
// arr_params[4]: the name of the mc in the parent of this stage from which you can import swf file;
mm:menuLoader (the class from script file "menuLoader")
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: after variable "arr_params[0]" is set, the function will automatically delete some menu which'position exceed the all length
To change the width of the menu bar, you have to adjust both the array variable named "arr_params[0]" and the attribute width of the stage .
* XML FILE SETTINGS
.
0xffffff (the color of the text of menu when the mouse roll over the menu)
0xD47206 (the bgcolor of the menu when the mouse roll over the menu)
1 (the number of the active item in menu of which the status is roll over)
0 (horizone menu or vertical menu option,1-horizone;0-vertical)
0 (option to determine to load swf file or open a url window,1-url window;0-swf file)
1 (option to determine the menu has sound effect)
1 (option to determine the menu has background)
.
.
HOME ( the caption of the menu )
http://www.google.com ( the url of the menu )
_blank ( the window of the menu )
3.swf ( the name of the other swf file to load when click the menu )
5 (the frame number of the other swf file to load )
mc_swf (the name of the movieclip in the parent swf file of this stage from which you can import swf file)
.
* 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