Search the web
Sign In
New User? Sign Up
ydn-flash · Yahoo! Flash Developer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Astra Animation, clearAllRunning not working   Message List  
Reply | Forward Message #1008 of 2036 |
Re: Astra Animation, clearAllRunning not working

Yes. We will take care of it in a future release.

Thanks,
Tripp

--- In ydn-flash@yahoogroups.com, "Josh Tynjala" <josh@...> wrote:
>
> That makes sense. Good find. I'm no longer with Yahoo! anymore, but
> I'm sure someone else on the Flash Platform team there can patch it up
> for you.
>
> Josh Tynjala
>
> On Tue, May 20, 2008 at 2:25 AM, oskarjoelson <oskarjoelson@...> wrote:
> >> Until then, you should be able to add
> >> this line before the return statement to fix it:
> >>
> >> animations.push(animation);
> >
> > That seems to do it!
> >
> > This leeds to another problem though. Since removeAnimation() modifies
> > the animations array by splicing it, looping over the same array in
> > the beginning of create() whilst removing items from it will in some
> > cases trigger an error. I recommend making a copy of the animations
> > array and looping over that instead, like this:
> >
> > var animationCount:int = animations.length;
> > var animationsCopy:Array = animations.concat( new Array() );
> > for(var i:int = 0; i < animationCount; i++) {
> > var oldAnimation:Animation = Animation(animationsCopy[i]);
> > //stop it at the current position
> > oldAnimation.pause();
> > removeAnimation(oldAnimation);
> > }
> >
> > A little clarification, the following:
> >
> > var animationsCopy:Array = new Array( animations );
> >
> > led to a Type Coercion error, so I used concat() instead.
> >
> > /Oskar
> >
> >
>





Tue May 20, 2008 8:26 pm

tripp.bridges
Offline Offline
Send Email Send Email

Forward
Message #1008 of 2036 |
Expand Messages Author Sort by Date

Hi! It seems that setting clearAllRunning to true when calling Animation.create() doesn't seem to effect anything. This is probably due to...
oskarjoelson
Offline Send Email
May 13, 2008
1:07 pm

You're absolutely right. I don't know how I missed that. Good find. It will be fixed in the next release. Until then, you should be able to add this line...
Josh Tynjala
joshtynjala
Offline Send Email
May 13, 2008
4:59 pm

... That seems to do it! This leeds to another problem though. Since removeAnimation() modifies the animations array by splicing it, looping over the same...
oskarjoelson
Offline Send Email
May 20, 2008
4:07 pm

That makes sense. Good find. I'm no longer with Yahoo! anymore, but I'm sure someone else on the Flash Platform team there can patch it up for you. Josh...
Josh Tynjala
joshtynjala
Offline Send Email
May 20, 2008
8:23 pm

Yes. We will take care of it in a future release. Thanks, Tripp...
tripp.bridges
Offline Send Email
May 20, 2008
8:26 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help