[flexcoders] chaining effects together

2009-01-09 Thread simonjpalmer
I have two custom controls which I want to fade in and out in response to a button click, so, control A is showing, press the B button, A fades out and control B fades in. I know how to set show and hide effects but they seems to happen simultaneously, which is really ugly. How do I make B's

Re: [flexcoders] chaining effects together

2009-01-09 Thread Ward Loockx
Just use the effectend event.. small quick and dirty example included ;) Greets, Ward Loockx mx:script private var fadeBIn:fade; private var fadeBOut:fade; private var fadeAIn:fade; private var fadeAOut:fade; private function creationcomplete():void { fadeAOut.alphaTo = 0;

Re: [flexcoders] chaining effects together

2009-01-09 Thread Nate Beck
You can also use the Sequence class. http://blog.flexexamples.com/2008/04/23/sequencing-effects-in-flex-using-the-mxsequence-tag-redux/ Has a great example of this. On Fri, Jan 9, 2009 at 10:02 AM, Ward Loockx w...@loockx.be wrote: Just use the effectend event.. small quick and dirty example