[flexcoders] override commitSelectedIndex for ViewStack component

2009-04-07 Thread gwangdesign
Hi,

I am sure this has been discussed somewhere by someone before. So excuse me if 
this is an old topic. But what I want is when the selectedIndex changes in a 
ViewStack component, instead of the default behavior of waiting until the 
current selected child completes its hideEffect to start the showEffect of the 
new selected child, I would like to play both effects concurrently (as a 
compound parallel effect).

So I guess what I need to do is to override the commitSelectedIndex method in 
ViewStack for my subclass. But by looking at the code, I am convinced it's a 
little bit over my head at least for now. So I'd love some lead (the more 
detailed the better;)) as to how I should override the method. Sample code is 
much appreciated. 

Thanks a lot.

-geng



RE: [flexcoders] override commitSelectedIndex for ViewStack component

2009-04-07 Thread Tracy Spratt
There is a component that does this quite well.  It is by tink, called the
PairedStackEffect, check it out first.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of gwangdesign
Sent: Tuesday, April 07, 2009 7:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] override commitSelectedIndex for ViewStack component

 






Hi,

I am sure this has been discussed somewhere by someone before. So excuse me
if this is an old topic. But what I want is when the selectedIndex changes
in a ViewStack component, instead of the default behavior of waiting until
the current selected child completes its hideEffect to start the showEffect
of the new selected child, I would like to play both effects concurrently
(as a compound parallel effect).

So I guess what I need to do is to override the commitSelectedIndex method
in ViewStack for my subclass. But by looking at the code, I am convinced
it's a little bit over my head at least for now. So I'd love some lead (the
more detailed the better;)) as to how I should override the method. Sample
code is much appreciated. 

Thanks a lot.

-geng