package { import DynamicEvent; import flash.events.Event; /** * ... */ dynamic public class AdEvent extends DynamicEvent { /** * AdEvent.type for all AdEvents */ public static const AD_EVENT :String = "AdEvent"; /** * Event dispatched when the user clicks-through on the ad */ public static const CLICK :String = "Click"; /** * Event dispatched when the user closes the ad completely */ public static const CLOSE :String = "Close"; /** * Event dispatched every second during an ad timeout countdown */ public static const COUNTDOWN :String = "Countdown"; /** * Event dispatched when a user selects ad content */ public static const DESELECT :String = "Deselect"; /** * Event dispatched when an ad expansion is requested */ public static const EXPAND :String = "Expand"; /** * Event dispatched when an ad expansion is completed (including animation) */ public static const EXPAND_COMPLETE :String = "ExpandComplete"; /** * Event dispatched when the user first clicks on an ad */ public static const FIRST_INTERACTION :String = "FirstInteraction"; /** * Event dispatched when an ad retract is requested */ public static const RETRACT :String = "Retract"; /** * Event dispatched when an ad retract is completed (including animation) */ public static const RETRACT_COMPLETE :String = "RetractComplete"; /** * Event dispatched when user rolls over the ad */ public static const ROLL_OVER :String = "AdRollOver"; /** * Event dispatched when user rolls off the ad */ public static const ROLL_OFF :String = "AdRollOff"; /** * Event dispatched when the ad dimensions change */ public static const RESIZE :String = "Resize"; /** * Event dispatched when ad is initialized and ready to start */ public static const START :String = "Start"; /** * Event dispatched when an ad is about to be unloaded (Flash-in-Flash formats only) */ public static const UNLOAD :String = "Unload"; /** * Event dispatched when a user selects ad content */ public static const SELECT :String = "Select"; /** * Event dispatched when an ad content selection is completed (including animation) */ public static const SELECT_COMPLETE :String = "SelectComplete"; /** * Event dispatched when a user change ad content */ public static const CHANGE :String = "Change"; /** * Event dispatched when an internal ad expansion is requested */ public static const EXPAND_INTERNAL :String = "expandInternal"; /** * Event dispatched when an internal ad retract is requested */ public static const RETRACT_INTERNAL :String = "retractInternal"; /** * Event dispatched when the mouse enters the ad */ public static const MOUSE_ENTER :String = "mouseEnter"; /** * Event dispatched when the mouse leaves the ad */ public static const MOUSE_LEAVE :String = "mouseLeave"; /** * Event dispatched when the mouse leaves the ad */ public static const SCROLL_PAGE :String = "scroll"; /** * Event dispatched when the intro complete */ public static const INTRO_COMPLETE :String = "introComplete"; /** * Event dispatched when the sync success */ public static const SYNC_SUCCESS:String = "sync_success"; /** * Event dispatched when the sync success */ public static const SYNC_FAIL:String = "sync_fail"; public var subtype:String; public var info:Object; public function AdEvent(subType:String, params:Object = null):void { // var _log:UnicastLogger = new UnicastLogger(AD_EVENT); super(AD_EVENT, params); this.subtype = subType; } /** * Returns a clone (duplicate instance) of this event */ public override function clone():Event { return new AdEvent(subtype); } /** * */ public override function toString():String { var paramArr:Array = [AD_EVENT, "subtype"]; for (var n:* in this) paramArr.push(n); return formatToString.apply(null, paramArr); } } }