If you add an event listener for the effectEnd - you have the effect instance and object it was applied to. As I mentioned before you can simply call Foo.filters = []; Alternatively you can access the filters array and pop/push as you like. are you trying to do something where a sequence of events would help? I'm not sure that we can do much more without seeing what you are trying to do in context (code). Source?
Rick Winscot From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Thursday, March 27, 2008 7:21 AM To: [email protected] Subject: Re: [flexcoders] How do I remove an effect? It's from Actionscript, as it's in some debugging code: glow = new Glow(); glow.alphaFrom = 1; glow.alphaTo = 0; glow.repeatCount = 0; glow.duration = 500; glow.blurXFrom = 10; glow.blurXTo = 10; glow.blurYFrom = 10; glow.blurYTo = 10; glow.color = 0xff0000; glow.strength = 10; glowInstance = glow.play([_currentObject])[0]; -J On Thu, Mar 27, 2008 at 4:41 PM, Gordon Smith <[EMAIL PROTECTED]> wrote: How do you set the effect? By writing an attribute on an MXML tag, or by calling setStyle("effectName", myEffectInstance)? Gordon Smith Adobe Flex SDK Team _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Wednesday, March 26, 2008 10:40 PM To: [email protected] Subject: Re: [flexcoders] How do I remove an effect? Unfortunately that doesn't work either :( -J On Thu, Mar 27, 2008 at 2:14 AM, Gordon Smith <[EMAIL PROTECTED]> wrote: Try setStyle("effectName", undefined); Gordon Smith Adobe Flex SDK Team _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Tuesday, March 25, 2008 6:25 PM To: [email protected] Subject: Re: [flexcoders] How do I remove an effect? I was beginning to think that might be the only way to go about it. Lame :( But cheers :) -J On Wed, Mar 26, 2008 at 9:53 AM, Rick Winscot <[EMAIL PROTECTED]> wrote: ARRRR MATEY. Foo.filters = []; Where Foo be your object with the filter. Rick Winscot From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Sent: Tuesday, March 25, 2008 6:17 AM To: [email protected] Subject: Re: [flexcoders] How do I remove an effect? I'm not sure if this is possible, but I know that in the past, I've set effects using setStyle('effectName', EffectClassInstance). Would it be possible to just use that and set it to null perhaps? On Tue, Mar 25, 2008 at 3:09 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: Hey guys, How do I remove an effect? stop() and end() both just stop the effect, rather than getting rid of it. Do I have to go and remove the filter by hand (it's a glow Effect)? -J -- "Therefore, send not to know For whom the bell tolls, It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- "Every child has many wishes. Some include a wallet, two chicks and a cigar, but that's another story." -- "Therefore, send not to know For whom the bell tolls, It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- "Therefore, send not to know For whom the bell tolls, It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- "Therefore, send not to know For whom the bell tolls, It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
<<image001.jpg>>
<<image002.jpg>>

