About Initialization Object Properties (Flash Professional Only) - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

About initialization object properties
(Flash Professional only)
The
(initialization object) parameter is a fundamental concept in creating the
initObject
layout for the Menu component. This parameter is an object with properties. Each property
represents one of the possible the XML attributes of a menu item. (For a description of the
properties allowed in the
on page
887.)
The
parameter is used in the following methods:
initObject
Menu.addMenuItem()
Menu.addMenuItemAt()
MenuDataProvider.addMenuItem()
MenuDataProvider.addMenuItemAt()
The following example creates an
:
instanceName
var i = myMenu.addMenuItem({label:"myMenuItem",
instanceName:"myFirstItem"});
Several of the properties work together to create a particular type of menu item. You assign
specific properties to create certain types of menu items (normal, separator, check box, or
radio button).
For example, you can initialize a normal menu item with the following
parameter:
myMenu.addMenuItem({label:"myMenuItem", enabled:true, icon:"myIcon",
instanceName:"myFirstItem"});
You can initialize a separator menu item with the following
myMenu.addMenuItem({type:"separator"});
You can initialize a check box menu item with the following
myMenu.addMenuItem({type:"check", label:"myMenuCheck", enabled:false,
selected:true, instanceName:"myFirstCheckItem"})
You can initialize a radio button menu item with the following
myMenu.addMenuItem({type:"radio", label:"myMenuRadio1", enabled:true,
selected:false, groupName:"myRadioGroup",
instanceName:"myFirstRadioItem"})
parameter, see
initObject
initObject

About initialization object properties (Flash Professional only)

"About menu item XML attributes"
parameter with two properties,
initObject
initObject
initObject
and
label
initObject
parameter:
parameter:
parameter:
891

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents