Packagecom.adobe.mediacore.events
Classpublic final class OpportunityHandledEvent
InheritanceOpportunityHandledEvent Inheritance flash.events.Event

Event dispatched when an opportunity was processed.



Public Properties
 PropertyDefined By
  placement : Placement
[read-only] The opportunity placement associated with this event.
OpportunityHandledEvent
Public Methods
 MethodDefined By
  
OpportunityHandledEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, placement:Placement = null)
Default constructor.
OpportunityHandledEvent
  
clone():Event
[override]
OpportunityHandledEvent
  
[static] Factory method for creating a OPERATION_SUCCESSFUL event.
OpportunityHandledEvent
  
[static] Factory method for creating a OPERATION_FAILED event.
OpportunityHandledEvent
Public Constants
 ConstantDefined By
  OPERATION_FAILED : String = failed
[static] Event dispatched when an error occurred while trying to place a resolved opportunity on the video timeline.
OpportunityHandledEvent
  OPERATION_SUCCESSFUL : String = successful
[static] Event dispatched when an opportunity was successfully resolved and placed on the video timeline.
OpportunityHandledEvent
Property Detail
placementproperty
placement:Placement  [read-only]

The opportunity placement associated with this event.


Implementation
    public function get placement():Placement
Constructor Detail
OpportunityHandledEvent()Constructor
public function OpportunityHandledEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, placement:Placement = null)

Default constructor.

Parameters
type:String — Event type.
 
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
 
placement:Placement (default = null) — The actual placement on the timeline.
Method Detail
clone()method
override public function clone():Event

Returns
Event
createCompleted()method 
public static function createCompleted(placement:Placement):OpportunityHandledEvent

Factory method for creating a OPERATION_SUCCESSFUL event.

Parameters

placement:Placement — The actual placement on the timeline.

Returns
OpportunityHandledEvent — a valid OpportunityHandledEvent
createFailed()method 
public static function createFailed(placement:Placement):OpportunityHandledEvent

Factory method for creating a OPERATION_FAILED event.

Parameters

placement:Placement — The actual placement on the timeline.

Returns
OpportunityHandledEvent — a valid OpportunityHandledEvent
Constant Detail
OPERATION_FAILEDConstant
public static const OPERATION_FAILED:String = failed

Event dispatched when an error occurred while trying to place a resolved opportunity on the video timeline.

OPERATION_SUCCESSFULConstant 
public static const OPERATION_SUCCESSFUL:String = successful

Event dispatched when an opportunity was successfully resolved and placed on the video timeline.