MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 893

Components language reference
Table of Contents

Advertisement

The following example defines three check box menu items:
<menu>
<menuitem label="Apples" type="check" instanceName="buyApples"
selected="true" />
<menuitem label="Oranges" type="check" instanceName="buyOranges"
selected="false" />
<menuitem label="Bananas" type="check" instanceName="buyBananas"
selected="false" />
</menu>
You can use the instance names in ActionScript to access the menu items directly from the
menu itself, as in the following example:
myMenu.setMenuItemSelected(myMenu.buyapples, true);
myMenu.setMenuItemSelected(myMenu.buyoranges, false);
The
attribute should be modified only with the
selected
You can directly examine the
.
false
Radio button menu items
Menu items whose
type
the items can be selected at a time. Although a radio button menu item behaves similarly to a
RadioButton component, a radio button menu item appears visually without the border
surrounding the button. So an unselected radio button menu item looks like a Normal menu
item until selected.
You create a radio group by giving the menu items the same value for their
attribute, as in the following example:
<menu>
<menuitem label="Center" type="radio" groupName="alignment_group"
instanceName="center_item"/>
<menuitem type="separator" />
<menuitem label="Top"
<menuitem label="Bottom" type="radio" groupName="alignment_group" />
<menuitem label="Right"
<menuitem label="Left"
</menu>
attribute, but it returns a string value of
selected
attribute is set to
radio
type="radio" groupName="alignment_group" />
type="radio" groupName="alignment_group" />
type="radio" groupName="alignment_group" />
About menu item types (Flash Professional only)
setMenuItemSelected()
can be grouped together so that only one of
method.
or
true
groupName
889

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