| Package | spark.events |
| Class | public class MenuEvent |
| Inheritance | MenuEvent IndexChangeEvent flash.events.Event |
![]() | This class is experimental, which means it has not been tested or documented as thoroughly as other core Apache Flex classes. |
| Property | Defined By | ||
|---|---|---|---|
| item : Object | MenuEvent | ||
| menu : List | MenuEvent | ||
![]() | newIndex : int
The zero-based index after the change. | IndexChangeEvent | |
![]() | oldIndex : int
The zero-based index before the change. | IndexChangeEvent | |
| Method | Defined By | ||
|---|---|---|---|
| MenuEvent | |||
clone():Event [override] | MenuEvent | ||
[static] | MenuEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
![]() | CARET_CHANGE : String = caretChange [static]
The IndexChangeEvent.CARET_CHANGE constant defines the value of the
type property of the event object for a caretChange event,
which indicates that the current item in focus is about to change. | IndexChangeEvent | |
![]() | CHANGE : String = change [static]
The IndexChangeEvent.CHANGE constant defines the value of the
type property of the event object for a change event,
which indicates that an index has changed, such as when a List-based control
changes its selection. | IndexChangeEvent | |
![]() | CHANGING : String = changing [static]
The IndexChangeEvent.CHANGING constant defines the value of the
type property of the event object for a changing event,
which indicates that the current selection is about to change. | IndexChangeEvent | |
| CHECKED : String = checked [static] | MenuEvent | ||
| SELECTED : String = selected [static] | MenuEvent | ||
| item | property |
public var item:Object| menu | property |
public var menu:List| MenuEvent | () | Constructor |
public function MenuEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, owner:List = null, selectedItem:Object = null)type:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) | |
owner:List (default = null) | |
selectedItem:Object (default = null) |
| clone | () | method |
override public function clone():EventReturnsEvent |
| convert | () | method |
public static function convert(event:IndexChangeEvent, menu:Menu, item:Object):EventParameters
event:IndexChangeEvent | |
menu:Menu | |
item:Object |
Event |
| CHECKED | Constant |
public static const CHECKED:String = checked| SELECTED | Constant |
public static const SELECTED:String = selected