Flex 1.5?
Instead of e.addEventListener(), use:
e.listener = this;
and then include an onEffectEnd method:
public function onEffectEnd(event: Object) : Void {
mx.controls.Alert.show(Effect ended);
}
Doug
--- In flexcoders@yahoogroups.com, gevgelija50 [EMAIL PROTECTED]
wrote:
I
Doug,
yes, this is in Flex 1.5.
I used your example and it worked great!
Thanks!
--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED]
wrote:
Flex 1.5?
Instead of e.addEventListener(), use:
e.listener = this;
and then include an onEffectEnd method:
public function
Doug,
Can I point the listener to a custom function instead?
e.listener = myFunction;
--- In flexcoders@yahoogroups.com, gevgelija50 [EMAIL PROTECTED]
wrote:
Doug,
yes, this is in Flex 1.5.
I used your example and it worked great!
Thanks!
--- In flexcoders@yahoogroups.com, Doug
Great!
And technically, onEffectEnd(event) should be something more like
onEffectEnd(effect: mx.effects.Effect), since this method gets
passed the effect object, not an event.
--- In flexcoders@yahoogroups.com, gevgelija50 [EMAIL PROTECTED]
wrote:
Doug,
yes, this is in Flex 1.5.
I
No, the listener needs to be an object that receives the effectEnded
notification (listener is a property of mx.effects.Effect).
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/effects/Effect.ht
ml#listener
What you can do is put some logic into onEffectEnd that looks at the
effect and its
5 matches
Mail list logo