Sets the position on another effect context when a specific event is dispatched. The position is calculated by a custom callback.

Available since

1.0.0

.

Constructor

new(context:IEffectContext, dispatcher:IEventDispatcher, eventType:String, callback:Event ‑> Float)

Creates a new EventToPositionEffectContext object from the given arguments.

Available since

1.0.0

.

Variables

@:flash.propertydispatcher:IEventDispatcher

The object that dispatches eventType.

@:flash.propertyeventType:String

Listens for this event on from the dispatcher.

Available since

1.0.0

.

@:flash.propertycallback:Event ‑> Float

The function called when the event is dispatched. Returns a new value for the effect context's position property (in the range from 0.0 to 1.0).

Available since

1.0.0

.

Methods

Inherited Variables

Defined by BaseDelegateEffectContext

@:flash.propertyread onlycontext:IEffectContext

The effect context that is the target of this delegate.

Available since

1.0.0

.

@:flash.propertyread onlyduration:Float

@:flash.propertyread onlytarget:Dynamic

Inherited Methods