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 stage width of the menu; // arr_params[1]: the stage height of the menu; // arr_params[2]: the height of mainmenu; // arr_params[3]: the height of submenu; // arr_params[4]: the parent window of the 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: when the stage is resized, you also have to set two variable("arr_params[0]","arr_params[1]")
* XML FILE SETTINGS . 0x126776 (set the bg color of the strip of main menu) 0xff0000 (set the bg color of the strip of sub menu) 0x0000 (set the border color of strip) 0x000000 (the text color of the main menu when the mouse roll over the main menu) 0xffffff (the text color of the main menu when the mouse roll out the main menu) 0x000000 (the text color of the sub menu when the mouse roll over the sub menu) 0xffffff (the text color of the sub menu when the mouse roll out the sub menu) 0xff0000 (set the tab color of the main menu) 0 (enable the strip has border 0:no border; 1:has border) 1 (set the direction(0:up or 1:down) of sub menu when submenu slide out from it's parent mainmenu) 2 (the border width of strip) 1 (set the menu's window after clicked:1-url;0-movieclip) 0 (enabled the menu has sound effect) 10 (the space length of each mainmenu or submenu) . .
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)
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]: the stage width of the menu;
// arr_params[1]: the stage height of the menu;
// arr_params[2]: the height of mainmenu;
// arr_params[3]: the height of submenu;
// arr_params[4]: the parent window of the 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: when the stage is resized, you also have to set two variable("arr_params[0]","arr_params[1]")
* XML FILE SETTINGS
.
0x126776 (set the bg color of the strip of main menu)
0xff0000 (set the bg color of the strip of sub menu)
0x0000 (set the border color of strip)
0x000000 (the text color of the main menu when the mouse roll over the main menu)
0xffffff (the text color of the main menu when the mouse roll out the main menu)
0x000000 (the text color of the sub menu when the mouse roll over the sub menu)
0xffffff (the text color of the sub menu when the mouse roll out the sub menu)
0xff0000 (set the tab color of the main menu)
0 (enable the strip has border 0:no border; 1:has border)
1 (set the direction(0:up or 1:down) of sub menu when submenu slide out from it's parent mainmenu)
2 (the border width of strip)
1 (set the menu's window after clicked:1-url;0-movieclip)
0 (enabled the menu has sound effect)
10 (the space length of each mainmenu or submenu)
.
.
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)
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