Package | impression.events |
Class | public class MultipleChoiceEvent |
Inheritance | MultipleChoiceEvent ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
correct : Boolean [read-only]
Indicates whether or not evaluatedIndex is the index of the answer. | MultipleChoiceEvent | ||
evaluatedIndex : Number [read-only]
The index of the evaluated item. | MultipleChoiceEvent | ||
![]() | sb : Storyboard [read-only]
The Storyboard object assigned to the target. | StoryboardEvent | |
selectedIndex : Number [read-only]
The index of the selected item. | MultipleChoiceEvent |
Method | Defined By | ||
---|---|---|---|
MultipleChoiceEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, sb:Storyboard = null, selectedIndex:Number = -1, evaluatedIndex:Number = -1, correct:Boolean = false)
Creates a new instance of a MultipleChoiceEvent object. | MultipleChoiceEvent | ||
clone():Event [override]
Duplicates an instance of the event object. | MultipleChoiceEvent | ||
toString():String [override]
Returns a string containing all the properties of the MultipleChoiceEvent object. | MultipleChoiceEvent |
Constant | Defined By | ||
---|---|---|---|
![]() | COMPLETE : String = complete [static]
The StoryboardEvent.COMPLETE constant defines the value of the
type property of a complete event object. | StoryboardEvent | |
![]() | CONTENT_LOAD_BEGIN : String = contentLoadBegin [static]
The StoryboardEvent.CONTENT_LOAD_BEGIN constant defines the value of the
type property of a content load begin event object. | StoryboardEvent | |
![]() | CONTENT_LOAD_END : String = contentLoadEnd [static]
The StoryboardEvent.CONTENT_LOAD_END constant defines the value of the
type property of a content load end event object. | StoryboardEvent | |
EVALUATE : String = multipleChoiceEvaluate [static]
The MultipleChoiceEvent.EVALUATE constant defines the value of the
type property of a evaluate event object. | MultipleChoiceEvent | ||
![]() | INITIALIZE : String = initialize [static]
The StoryboardEvent.INITIALIZE constant defines the value of the
type property of a initialize event object. | StoryboardEvent | |
![]() | LOAD_COMPLETE : String = loadComplete [static]
The StoryboardEvent.LOAD_COMPLETE constant defines the value of the
type property of a load event object. | StoryboardEvent | |
![]() | LOAD_START : String = loadStart [static]
The StoryboardEvent.LOAD_START constant defines the value of the
type property of an load start event object. | StoryboardEvent | |
SELECTION_CHANGE : String = multipleChoiceSelectionChange [static]
The MultipleChoiceEvent.SELECTION_CHANGE constant defines the value of the
type property of a multiple choice selection change event object. | MultipleChoiceEvent | ||
![]() | UNLOAD : String = unload [static]
The StoryboardEvent.UNLOAD constant defines the value of the
type property of an unload event object. | StoryboardEvent |
correct | property |
correct:Boolean
[read-only]
Indicates whether or not evaluatedIndex
is the index of the answer.
public function get correct():Boolean
evaluatedIndex | property |
evaluatedIndex:Number
[read-only] The index of the evaluated item.
public function get evaluatedIndex():Number
selectedIndex | property |
selectedIndex:Number
[read-only] The index of the selected item.
public function get selectedIndex():Number
MultipleChoiceEvent | () | Constructor |
public function MultipleChoiceEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, sb:Storyboard = null, selectedIndex:Number = -1, evaluatedIndex:Number = -1, correct:Boolean = false)
Creates a new instance of a MultipleChoiceEvent object.
Parameterstype:String — The type of the event. Event listeners can access this information through the inherited type property.
| |
bubbles:Boolean (default = false ) — Determines whether the event object participates in the bubbling phase of the event flow. Event listeners can access this information through the inheritied bubbles property.
| |
cancelable:Boolean (default = false ) — Determines whether the event object can be canceled. Event listeners can access this information through the inherited cancelable property.
| |
sb:Storyboard (default = null ) — The Storyboard object assigned to the target. Event listeners can access this information through the inherited sb property.
| |
selectedIndex:Number (default = -1 ) — The index of the selected item. Event listeners can access this information through the selectedIndex property.
| |
evaluatedIndex:Number (default = -1 ) — The index of the evaluated item. Event listeners can access this information through the evaluatedIndex property.
| |
correct:Boolean (default = false ) — Indicates whether or not evaluatedIndex is the index of the answer. Event listeners can access this information through the correct property.
|
clone | () | method |
override public function clone():Event
Duplicates an instance of the event object.
Returns a new MultipleChoiceEvent object that is a copy of the original instance of the MultipleChoiceEvent object.
You do not normally call clone()
; the EventDispatcher class calls it automatically when you redispatch
an event--that is, when you call dispatchEvent(event)
from a handler that is handling event
.
Event — A new MultipleChoiceEvent object that is identical to the original.
|
toString | () | method |
override public function toString():String
Returns a string containing all the properties of the MultipleChoiceEvent object. The string is in the following format:
[MultipleChoiceEvent type=value bubbles=value cancelable=value eventPhase=value sb=value selectedIndex=value evaluatedIndex=value correct=value]
String — A string containing all the properties of the MultipleChoiceEvent object.
|
EVALUATE | Constant |
public static const EVALUATE:String = multipleChoiceEvaluate
The MultipleChoiceEvent.EVALUATE constant defines the value of the type property of a evaluate event object. This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |
sb | The Storyboard object assigned to the target. |
selectedIndex | The index of the selected item. |
evaluatedIndex | The index of the evaluated item. |
correct | Indicates whether or not evaluatedIndex is the index of the answer. |
SELECTION_CHANGE | Constant |
public static const SELECTION_CHANGE:String = multipleChoiceSelectionChange
The MultipleChoiceEvent.SELECTION_CHANGE constant defines the value of the type property of a multiple choice selection change event object. This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |
sb | The Storyboard object assigned to the target. |
selectedIndex | The index of the selected item. |
evaluatedIndex | The index of the evaluated item |
correct | Indicates whether or not evaluatedIndex is the index of the answer. |