ravidon
03-16-2005, 01:02 PM
Hi to all,
I have created a menu by writing the code,I mean menu items are created by using action script. Can I crete the menu items using XML,If so how can I?
please post the fla and xml file.And also how to link after clicking the item.
Please help me.
code: ..................................
var myMenu = mx.controls.Menu.createMenu();
myMenu.setStyle("color","0x167b11");
myMenu.setStyle("fontWeight","bold");
myMenu.setStyle("textRollOverColor","0x167b11");
myMenu.setStyle("backgroundColor","0x9eeb9c");
myMenu.addMenuItem({label: "Quick Demo Overview"});
b1=myMenu.addMenuItem({label: "Company Sign Up" });
b1.addMenuItem({label: "Sign Up-Step1" });
b1.addMenuItem({label: "Sign Up-Step2" });
b2=myMenu.addMenuItem({label: "Payrun Admin Sign In" });
b2.addMenuItem({label: "Payrun Admin Sign In" });
b2.addMenuItem({label: "Retrieve Sign In Id" });
b2.addMenuItem({label: "Retrieve Password" });
b2.addMenuItem({label: "Retrieve Pattern word" });
b2.addMenuItem({label: "Retrieve all Sign in Details"});
b3=myMenu.addMenuItem({label: "Employer/Setup" });
b31=b3.addMenuItem({label: "Chart of Setup" });
b32=b3.addMenuItem({label: "Pension Details" });
b33=b3.addMenuItem({label: "Payrun Admin Internet Details" });
b31.addMenuItem({label: "Pay Period Setup" });
b31.addMenuItem({label: "PayRun Customisation" });
b31.addMenuItem({label: "Payment Setup" });
b31.addMenuItem({label: "Absence Admin & Payment" });
b31.addMenuItem({label: "Deduction Setup" });
b31.addMenuItem({label: "Department Setup" });
b31.addMenuItem({label: "Working Day Pattern Setup" });
b31.addMenuItem({label: "Holiday Scheme Setup" });
b31.addMenuItem({label: "Cost Center Setup" });
b32.addMenuItem({label: "Pension Providers" });
b32.addMenuItem({label: "COMP Pension Scheme" });
b32.addMenuItem({label: "COSR Pension Scheme" });
b32.addMenuItem({label: "FSAVC/GPP/PPP Scheme" });
b32.addMenuItem({label: "Stake Holder Pension" });
b33.addMenuItem({label: "Sign In Log Book" });
b33.addMenuItem({label: "Change E-Mail Address" });
b33.addMenuItem({label: "Change Password" });
b33.addMenuItem({label: "Change Pattern Word" });
b33.addMenuItem({label: "Change Security Question" });
b4=myMenu.addMenuItem({label: "Payrun Process" });
b4.addMenuItem({label: "Payrun" });
b4.addMenuItem({label: "Basic Pay Calculation"});
b41=b4.addMenuItem({label:"Other Pay Admin"});
b42=b4.addMenuItem({label:"Deduction & Pension Admin"});
b4.addMenuItem({label: "VAP Error and Setup" });
b4.addMenuItem({label: "Pay at AnyTime" });
b41.addMenuItem({label: "Holiday Payment" });
b41.addMenuItem({label: "Other Pay Items" });
b41.addMenuItem({label: "Absence Admin & Payment" });
b41.addMenuItem({label: "Tax Credits" });
b41.addMenuItem({label: "SSP Record & Payment" });
b41.addMenuItem({label: "SMP Record & Payment " });
b41.addMenuItem({label: "SAP Record & Payment " });
b41.addMenuItem({label: "SPP Birth Record & Payment " });
b41.addMenuItem({label: "SPP Adoption Record & Payment " });
b42.addMenuItem({label: "Deduction Item " });
b42.addMenuItem({label: "Pension Deduction " });
b42.addMenuItem({label: "Student Loan " });
b42.addMenuItem({label: "Attachment Order" });
b5=myMenu.addMenuItem({label: "Employee Internet A/C" });
b51=b5.addMenuItem({label:"Create EE Payroll Internet A/C"});
b52=b5.addMenuItem({label:"Manage EE Internet A/C"});
b53=b5.addMenuItem({label:"Forgot Sign In Details"});
b54=b5.addMenuItem({label:"EE Internet Access Rights"});
b55=b5.addMenuItem({label:"View/Edit EE Details"});
b56=b5.addMenuItem({label:"Add New Employee"});
b51.addMenuItem({label: "From add new EE" });
b51.addMenuItem({label: "Through View/Edit EE" });
b51.addMenuItem({label: "Through Enable Internet A/C" });
b51.addMenuItem({label: "From EE Internet A/C" });
b51.addMenuItem({label: "From EE Access Rights" });
b52.addMenuItem({label: "Disable EE Internet A/c" });
b52.addMenuItem({label: "Reactivate EE Internet A/c" });
b52.addMenuItem({label: "Edit EE Internet A/c" });
b52.addMenuItem({label: "On Reset EE " });
b53.addMenuItem({label: "Retrieve Sign In Id" });
b53.addMenuItem({label: "Retrieve Password" });
b53.addMenuItem({label: "Retrieve Pattern word" });
b53.addMenuItem({label: "Retrieve all Sign in Details"});
b54.addMenuItem({label: "Self Update Phone & Address" });
b54.addMenuItem({label: "Self Admin P11D" });
b54.addMenuItem({label: "Timesheet Entry" });
b54.addMenuItem({label: "Expense Entry"});
b55.addMenuItem({label: "Personal Details" });
b55.addMenuItem({label: "Internet A/C Details" });
b55.addMenuItem({label: "Other Details" });
b56.addMenuItem({label: "Existing EE-Process Pay" });
b56.addMenuItem({label: "Existing EE-Migrate Data" });
b56.addMenuItem({label: "New Joiner-Form P45" });
b56.addMenuItem({label: "New Joiner-Form P46"});
b56.addMenuItem({label: "Joiner without Form P45-P46"});
b6=myMenu.addMenuItem({label: "Finance/Payment" });
b6.addMenuItem({label: "Pay Example"});
b6.addMenuItem({label: "Payment to IR"});
b7=myMenu.addMenuItem({label: "Auto TAX Code Change" });
b7.addMenuItem({label: "Annual Global Tax Code"});
b7.addMenuItem({label: "In Year Individual Tax Code"});
b8=myMenu.addMenuItem({label: "e-Filing/EOY Process" });
b8.addMenuItem({label: "e-File P45 & P46"});
b8.addMenuItem({label: "e-File p38A"});
b8.addMenuItem({label: "EOY Approval Process"});
b8.addMenuItem({label: "e-File EOY Documents"});
myMenu.show(0,0);
I have created a menu by writing the code,I mean menu items are created by using action script. Can I crete the menu items using XML,If so how can I?
please post the fla and xml file.And also how to link after clicking the item.
Please help me.
code: ..................................
var myMenu = mx.controls.Menu.createMenu();
myMenu.setStyle("color","0x167b11");
myMenu.setStyle("fontWeight","bold");
myMenu.setStyle("textRollOverColor","0x167b11");
myMenu.setStyle("backgroundColor","0x9eeb9c");
myMenu.addMenuItem({label: "Quick Demo Overview"});
b1=myMenu.addMenuItem({label: "Company Sign Up" });
b1.addMenuItem({label: "Sign Up-Step1" });
b1.addMenuItem({label: "Sign Up-Step2" });
b2=myMenu.addMenuItem({label: "Payrun Admin Sign In" });
b2.addMenuItem({label: "Payrun Admin Sign In" });
b2.addMenuItem({label: "Retrieve Sign In Id" });
b2.addMenuItem({label: "Retrieve Password" });
b2.addMenuItem({label: "Retrieve Pattern word" });
b2.addMenuItem({label: "Retrieve all Sign in Details"});
b3=myMenu.addMenuItem({label: "Employer/Setup" });
b31=b3.addMenuItem({label: "Chart of Setup" });
b32=b3.addMenuItem({label: "Pension Details" });
b33=b3.addMenuItem({label: "Payrun Admin Internet Details" });
b31.addMenuItem({label: "Pay Period Setup" });
b31.addMenuItem({label: "PayRun Customisation" });
b31.addMenuItem({label: "Payment Setup" });
b31.addMenuItem({label: "Absence Admin & Payment" });
b31.addMenuItem({label: "Deduction Setup" });
b31.addMenuItem({label: "Department Setup" });
b31.addMenuItem({label: "Working Day Pattern Setup" });
b31.addMenuItem({label: "Holiday Scheme Setup" });
b31.addMenuItem({label: "Cost Center Setup" });
b32.addMenuItem({label: "Pension Providers" });
b32.addMenuItem({label: "COMP Pension Scheme" });
b32.addMenuItem({label: "COSR Pension Scheme" });
b32.addMenuItem({label: "FSAVC/GPP/PPP Scheme" });
b32.addMenuItem({label: "Stake Holder Pension" });
b33.addMenuItem({label: "Sign In Log Book" });
b33.addMenuItem({label: "Change E-Mail Address" });
b33.addMenuItem({label: "Change Password" });
b33.addMenuItem({label: "Change Pattern Word" });
b33.addMenuItem({label: "Change Security Question" });
b4=myMenu.addMenuItem({label: "Payrun Process" });
b4.addMenuItem({label: "Payrun" });
b4.addMenuItem({label: "Basic Pay Calculation"});
b41=b4.addMenuItem({label:"Other Pay Admin"});
b42=b4.addMenuItem({label:"Deduction & Pension Admin"});
b4.addMenuItem({label: "VAP Error and Setup" });
b4.addMenuItem({label: "Pay at AnyTime" });
b41.addMenuItem({label: "Holiday Payment" });
b41.addMenuItem({label: "Other Pay Items" });
b41.addMenuItem({label: "Absence Admin & Payment" });
b41.addMenuItem({label: "Tax Credits" });
b41.addMenuItem({label: "SSP Record & Payment" });
b41.addMenuItem({label: "SMP Record & Payment " });
b41.addMenuItem({label: "SAP Record & Payment " });
b41.addMenuItem({label: "SPP Birth Record & Payment " });
b41.addMenuItem({label: "SPP Adoption Record & Payment " });
b42.addMenuItem({label: "Deduction Item " });
b42.addMenuItem({label: "Pension Deduction " });
b42.addMenuItem({label: "Student Loan " });
b42.addMenuItem({label: "Attachment Order" });
b5=myMenu.addMenuItem({label: "Employee Internet A/C" });
b51=b5.addMenuItem({label:"Create EE Payroll Internet A/C"});
b52=b5.addMenuItem({label:"Manage EE Internet A/C"});
b53=b5.addMenuItem({label:"Forgot Sign In Details"});
b54=b5.addMenuItem({label:"EE Internet Access Rights"});
b55=b5.addMenuItem({label:"View/Edit EE Details"});
b56=b5.addMenuItem({label:"Add New Employee"});
b51.addMenuItem({label: "From add new EE" });
b51.addMenuItem({label: "Through View/Edit EE" });
b51.addMenuItem({label: "Through Enable Internet A/C" });
b51.addMenuItem({label: "From EE Internet A/C" });
b51.addMenuItem({label: "From EE Access Rights" });
b52.addMenuItem({label: "Disable EE Internet A/c" });
b52.addMenuItem({label: "Reactivate EE Internet A/c" });
b52.addMenuItem({label: "Edit EE Internet A/c" });
b52.addMenuItem({label: "On Reset EE " });
b53.addMenuItem({label: "Retrieve Sign In Id" });
b53.addMenuItem({label: "Retrieve Password" });
b53.addMenuItem({label: "Retrieve Pattern word" });
b53.addMenuItem({label: "Retrieve all Sign in Details"});
b54.addMenuItem({label: "Self Update Phone & Address" });
b54.addMenuItem({label: "Self Admin P11D" });
b54.addMenuItem({label: "Timesheet Entry" });
b54.addMenuItem({label: "Expense Entry"});
b55.addMenuItem({label: "Personal Details" });
b55.addMenuItem({label: "Internet A/C Details" });
b55.addMenuItem({label: "Other Details" });
b56.addMenuItem({label: "Existing EE-Process Pay" });
b56.addMenuItem({label: "Existing EE-Migrate Data" });
b56.addMenuItem({label: "New Joiner-Form P45" });
b56.addMenuItem({label: "New Joiner-Form P46"});
b56.addMenuItem({label: "Joiner without Form P45-P46"});
b6=myMenu.addMenuItem({label: "Finance/Payment" });
b6.addMenuItem({label: "Pay Example"});
b6.addMenuItem({label: "Payment to IR"});
b7=myMenu.addMenuItem({label: "Auto TAX Code Change" });
b7.addMenuItem({label: "Annual Global Tax Code"});
b7.addMenuItem({label: "In Year Individual Tax Code"});
b8=myMenu.addMenuItem({label: "e-Filing/EOY Process" });
b8.addMenuItem({label: "e-File P45 & P46"});
b8.addMenuItem({label: "e-File p38A"});
b8.addMenuItem({label: "EOY Approval Process"});
b8.addMenuItem({label: "e-File EOY Documents"});
myMenu.show(0,0);