MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 544

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

About initialization object properties (Flash Professional only)
The
initObject
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
initObject
The
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
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"})
You should treat the
You should set them only while creating an item (for example, in a call to
Modifying these attributes after creation may produce unpredictable results.
Menu parameters (Flash Professional only)
There are no authoring parameters for the Menu component.
You can write ActionScript to control the Menu component using its properties, methods, and
events. For more information, see
544
Chapter 6: Components Dictionary
(initialization object) parameter is a fundamental concept in creating the layout
parameter, see
parameter is used in the following methods:
initObject
,
instanceName
groupName
"Menu class (Flash Professional only)" on page
"About menu item XML attributes" on page
parameter with two properties,
initObject
initObject
initObject
, and
attributes of a menu item as read-only.
type
541.)
and
label
parameter:
initObject
parameter:
parameter:
parameter:
).
addMenuItem()
551.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents