Thanks Mike -- but it doesn't seem to be working with AddChild; it
seems that when I do an addChild, nothing gets inited...
On Sep 12, 2007, at 4:52 PM, Mike Krotscheck wrote:
You need to have the addChild in the state declaration and the
transition itself, but yes- effectively what you’re doing is
telling the state when it should remove the child. Here’s a brief
example on something I did recently- it’s not AddChild, but if I
hadn’t built it out explicitly like this the removechild of the
state itself would have fired before the transition started.
<mx:Transition fromState="state1"
toState="state2">
<mx:Sequence>
<mx:Parallel
duration="2000">
<mx:Move
target="{floatingOffStageComponent}"
xFrom="0"
xTo="-400"
easingFunction="{mx.effects.easing.Cubic.easeOut}"
/>
<mx:Move
target="{floatingOnStageComponent}"
xFrom="-400"
xTo="0"
easingFunction="{mx.effects.easing.Cubic.easeOut}"
/>
</mx:Parallel>
<mx:RemoveChildAction target="{floatingOffStageComponent}" />
</mx:Sequence>
</mx:Transition>
Michael Krotscheck
Senior Developer
RESOURCE INTERACTIVE
www.resource.com
614 621 2888 main
614 410 3195 direct
412 726 8087 mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks
Sent: Wednesday, September 12, 2007 4:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] sequencing effects
You put the addChild WITHIN the transition?
Is there an example of this somewhere? I didn't know you could do
that.
On Sep 12, 2007, at 3:11 PM, Mike Krotscheck wrote:
If you set up a transition to said state that contains AddChild
directives, they will occur in the order and with the timing
configured.
Michael Krotscheck
Senior Developer
RESOURCE INTERACTIVE
www.resource.com
614 621 2888 main
614 410 3195 direct
412 726 8087 mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks
Sent: Wednesday, September 12, 2007 12:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sequencing effects
Trying to do about 50 things at once for a demo today.
Say I've got a state with a number of addChildren elements. I've got
a transition I want to call on those children, but not all at once --
in sequence. How can I do this? I realize the Sequence is for
sequencing effects, not elements; but is there something like that
here? Or will I have to roll my own function to step through an array?