[flexcoders] Re: Effect Listener

2006-02-17 Thread Doug Lowder
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

[flexcoders] Re: Effect Listener

2006-02-17 Thread gevgelija50
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

[flexcoders] Re: Effect Listener

2006-02-17 Thread gevgelija50
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

[flexcoders] Re: Effect Listener

2006-02-17 Thread Doug Lowder
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

[flexcoders] Re: Effect Listener

2006-02-17 Thread Doug Lowder
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