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); menunumber:Number (the count of all menus but you can set the value to limit the count you like); mm:mainmenu ( the class from script file "mainmenu" ) 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: the width of the entire menu should be Multiples of 100 ,Multiples means the count of the menus(for example: 2menus, stage width is 204 ,variable "numWidth" is 250 and 3menus,stage width is 304 ,numWidth is 350 and so on)
* XML FILE SETTINGS . 0xffffff (this item is to set the color of mouse rollout the main menu) _blank (set the open window string of the main menu) . .
CompanyInstruction (the name of the main menu) http://www.baidu.com (the url of the main menu) 0xED1B23 (the color of the background to transform,when mouse rollover 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
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);
menunumber:Number (the count of all menus but you can set the value to limit the count you like);
mm:mainmenu ( the class from script file "mainmenu" )
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: the width of the entire menu should be Multiples of 100 ,Multiples means the count of the menus(for example: 2menus, stage width is 204 ,variable "numWidth" is 250 and 3menus,stage width is 304 ,numWidth is 350 and so on)
* XML FILE SETTINGS
.
0xffffff (this item is to set the color of mouse rollout the main menu)
_blank (set the open window string of the main menu)
.
.
CompanyInstruction (the name of the main menu)
http://www.baidu.com (the url of the main menu)
0xED1B23 (the color of the background to transform,when mouse rollover 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