Another option, instead of sub classing, would be to use states in place
of a view stack. State changes allow you to implement transition
effects (parallel or sequence), directly to the desired children.
-TH
--- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@...
wrote:
Tracy, Thanks much for the info. I did check out some of tink's
effects components (including some of those Papervision3D ones). All of
which seem to be custom effects, as opposed to subclass of a container
component.
--- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
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