Packageimpression.events
Classpublic class MatchingEvaluateEvent
InheritanceMatchingEvaluateEvent Inheritance StoryboardEvent Inheritance flash.events.Event

The MatchingPlayer object dispatches a MatchingEvaluateEvent when the evaluate() method is successfully invoked.



Public Properties
 PropertyDefined By
  correct : Boolean
[read-only] Indicates whether all valid question/answer pairs were correctly evaluated.
MatchingEvaluateEvent
 Inheritedsb : Storyboard
[read-only] The Storyboard object assigned to the target.
StoryboardEvent
  status : String
[read-only] Describes the status of the storyboard.
MatchingEvaluateEvent
  totalCorrect : Number
[read-only] Indicates the number of question/answer pairs evaluated as correct.
MatchingEvaluateEvent
  totalIncorrect : Number
[read-only] Indicates the number of question/answer pairs evaluated as incorrect.
MatchingEvaluateEvent
Public Methods
 MethodDefined By
  
MatchingEvaluateEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, sb:Storyboard = null, status:String, correct:Boolean = false, totalCorrect:Number = -1, totalIncorrect:Number = -1)
Creates a new instance of a MatchingEvaluateEvent object.
MatchingEvaluateEvent
  
clone():Event
[override] Creates a copy of a MatchingEvaluateEvent object and sets the value of each property to match that of the original.
MatchingEvaluateEvent
  
toString():String
[override] Returns a string containing all the properties of the MatchingEvaluateEvent object.
MatchingEvaluateEvent
Public Constants
 ConstantDefined By
 InheritedCOMPLETE : String = complete
[static] The StoryboardEvent.COMPLETE constant defines the value of the type property of a complete event object.
StoryboardEvent
 InheritedCONTENT_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
 InheritedCONTENT_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 = matchingEvaluate
[static] The MatchingEvaluateEvent.EVALUATE constant defines the value of the type property of a matching evaluate event object.
MatchingEvaluateEvent
 InheritedINITIALIZE : String = initialize
[static] The StoryboardEvent.INITIALIZE constant defines the value of the type property of a initialize event object.
StoryboardEvent
 InheritedLOAD_COMPLETE : String = loadComplete
[static] The StoryboardEvent.LOAD_COMPLETE constant defines the value of the type property of a load event object.
StoryboardEvent
 InheritedLOAD_START : String = loadStart
[static] The StoryboardEvent.LOAD_START constant defines the value of the type property of an load start event object.
StoryboardEvent
 InheritedUNLOAD : String = unload
[static] The StoryboardEvent.UNLOAD constant defines the value of the type property of an unload event object.
StoryboardEvent
Property Detail
correctproperty
correct:Boolean  [read-only]

Indicates whether all valid question/answer pairs were correctly evaluated.


Implementation
    public function get correct():Boolean
statusproperty 
status:String  [read-only]

Describes the status of the storyboard. When dispatched by the MatchingPlayer, this property will contain one of the QuestionStatusTypes constant values.


Implementation
    public function get status():String

See also

totalCorrectproperty 
totalCorrect:Number  [read-only]

Indicates the number of question/answer pairs evaluated as correct.


Implementation
    public function get totalCorrect():Number
totalIncorrectproperty 
totalIncorrect:Number  [read-only]

Indicates the number of question/answer pairs evaluated as incorrect.


Implementation
    public function get totalIncorrect():Number
Constructor Detail
MatchingEvaluateEvent()Constructor
public function MatchingEvaluateEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, sb:Storyboard = null, status:String, correct:Boolean = false, totalCorrect:Number = -1, totalIncorrect:Number = -1)

Creates a new instance of a MatchingEvaluateEvent object.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property. There is only one type of matching evaluate event: MatchingEvaluateEvent.EVALUATE.
 
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.
 
status:String — Describes the status of the storyboard. Event listeners can access this information through the status property.
 
correct:Boolean (default = false) — Indicates whether or not all question/answer pairs were correctly evaluated. Event listeners can access this information through the correct property.
 
totalCorrect:Number (default = -1) — Indicates the number of question/answer pairs evaluated as correct. Event listeners can access this information through the totalCorrect property.
 
totalIncorrect:Number (default = -1) — Indicates the number of question/answer pairs evaluated as incorrect. Event listeners can access this information through the totalIncorrect property.
Method Detail
clone()method
override public function clone():Event

Creates a copy of a MatchingEvaluateEvent object and sets the value of each property to match that of the original.

Returns
Event — A new MatchingEvaluateEvent object with property values that match those of the original.
toString()method 
override public function toString():String

Returns a string containing all the properties of the MatchingEvaluateEvent object. The string is in the following format:

[MatchingEvaluateEvent type=value bubbles=value cancelable=value eventPhase=value sb=value status=value correct=value totalCorrect=value totalIncorrect=value]

Returns
String — A string containing all the properties of the MatchingEvaluateEvent object.
Constant Detail
EVALUATEConstant
public static const EVALUATE:String = matchingEvaluate

The MatchingEvaluateEvent.EVALUATE constant defines the value of the type property of a matching evaluate event object. This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
sbThe Storyboard object assigned to the target.
statusA QuestionStatusTypes enumeration describing the current status of the storyboard.
correctIndicates whether or not all question/answer pairs were correctly evaluated.
totalCorrectThe number of valid questions evaluated as correct.
totalIncorrectThe number of valid questions evaluated as incorrect.

See also