Re: [flexcoders] sequencing effects

2007-09-13 Thread grimmwerks
Still curious if this can be done; I mean I could write my own  
class / method that would flip through an array and make sure the  
first one is finished before going on to the other; but I've also  
tried giving different elements on the page different effects with a  
startDelay - that ALMOST works, meaning, they wait for the delayed  
time and then initiated their effect, but they're visible until that  
time.




On Sep 13, 2007, at 1:19 PM, grimmwerks wrote:

I couldn't get addChild to work within a transition; I did searches  
for this in google, but nothing came up. If someone's got specific  
examples, I'd appreciate it.



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.


toState="state2">


duration="2000">

  
   target="{floatingOffStageComponent}"
  
   xFrom="0"
  
   xTo="-400"
  
   easingFunction="{mx.effects.easing.Cubic.easeOut}"
  
   />

  
   target="{floatingOnStageComponent}"
  
   xFrom="-400"
  
   xTo="0"
  
   easingFunction="{mx.effects.easing.Cubic.easeOut}"
  
   />


 






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?










Re: [flexcoders] sequencing effects

2007-09-13 Thread grimmwerks
I couldn't get addChild to work within a transition; I did searches  
for this in google, but nothing came up. If someone's got specific  
examples, I'd appreciate it.



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.


toState="state2">


duration="2000">

   
  target="{floatingOffStageComponent}"
   
  xFrom="0"
   
  xTo="-400"
   
  easingFunction="{mx.effects.easing.Cubic.easeOut}"
   
  />

   
  target="{floatingOnStageComponent}"
   
  xFrom="-400"
   
  xTo="0"
   
  easingFunction="{mx.effects.easing.Cubic.easeOut}"
   
  />


 






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?







Re: [flexcoders] sequencing effects

2007-09-12 Thread grimmwerks
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.


toState="state2">


duration="2000">

   
  target="{floatingOffStageComponent}"
   
  xFrom="0"
   
  xTo="-400"
   
  easingFunction="{mx.effects.easing.Cubic.easeOut}"
   
  />

   
  target="{floatingOnStageComponent}"
   
  xFrom="-400"
   
  xTo="0"
   
  easingFunction="{mx.effects.easing.Cubic.easeOut}"
   
  />


 






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?







RE: [flexcoders] sequencing effects

2007-09-12 Thread Mike Krotscheck
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.

 



















 

 

Michael Krotscheck

Senior Developer



RESOURCE INTERACTIVE

<http://www.resource.com/> www.resource.com

614 621 2888  main

614 410 3195  direct

412 726 8087  mobile

[EMAIL PROTECTED] <mailto:[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

<http://www.resource.com/> www.resource.com <http://www.resource.com> 

614 621 2888  main

614 410 3195  direct

412 726 8087  mobile

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> ] On Behalf Of grimmwerks
Sent: Wednesday, September 12, 2007 12:25 PM
To: flexcoders@yahoogroups.com <mailto: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?

 

 



Re: [flexcoders] sequencing effects

2007-09-12 Thread grimmwerks

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?






RE: [flexcoders] sequencing effects

2007-09-12 Thread Mike Krotscheck
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?