RE: [Flashcoders] Buggy Tween

2010-05-13 Thread Lehr, Theodore
: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney Jr [jr.swee...@comcast.net] Sent: Wednesday, May 12, 2010 6:38 PM To: Flash Coders List Subject: Re: [Flashcoders] Buggy Tween Howdy, You tween objects got garbage collected. I

Re: [Flashcoders] Buggy Tween

2010-05-13 Thread John R. Sweeney Jr
First thing are you tweening the swf you just loaded? If so, make sure its loaded before you start the tween. Second the // do your stuff - is what ever you want to happen next. In my example I was moving a one menu off the stage (left) and another one into view (from the right). I didn't want

RE: [Flashcoders] Buggy Tween

2010-05-13 Thread Mattheis, Erik (MIN - WSW)
Of Lehr, Theodore Sent: Thursday, May 13, 2010 6:11 AM To: Flash Coders List Subject: RE: [Flashcoders] Buggy Tween Thanks - for to need such hand holding I tried what you said but get the same results... What should be in the //do your stuff here? as far as I have it now - the tween is still

RE: [Flashcoders] Buggy Tween

2010-05-13 Thread Lehr, Theodore
:04 AM To: Flash Coders List Subject: RE: [Flashcoders] Buggy Tween Could it be you have var tween_handler:Tween inside of a function? If it's a class variable it won't get garbage collected, if it within a function it's eligible for garbage collection when the function is complete. YES: class

Re: [Flashcoders] Buggy Tween

2010-05-13 Thread John R. Sweeney Jr
No problem. :) My example was just an external AS file, not a class. Later, John on 5/13/10 11:17 AM, Lehr, Theodore at ted_l...@federal.dell.com wrote: Indeed - that seems to be it thanks Thanks John also! John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive

[Flashcoders] Buggy Tween

2010-05-12 Thread Lehr, Theodore
I have a CLICK event listener - the function it calls does two things: 1. Loads a .swf 2. creates a tween like: var mouseToTween:Tween = new Tween (mc,x,Strong.easeOut,mc.x.-159,3,true); The weird thing is that sometimes the tween just stops (sometimes it doe complete) and it seems to

Re: [Flashcoders] Buggy Tween

2010-05-12 Thread Henrik Andersson
Lehr, Theodore wrote: The weird thing is that sometimes the tween just stops (sometimes it doe complete) You have a classical garbage collection issue. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] Buggy Tween

2010-05-12 Thread Lehr, Theodore
List Subject: Re: [Flashcoders] Buggy Tween Lehr, Theodore wrote: The weird thing is that sometimes the tween just stops (sometimes it doe complete) You have a classical garbage collection issue. ___ Flashcoders mailing list Flashcoders

Re: [Flashcoders] Buggy Tween

2010-05-12 Thread Henrik Andersson
Lehr, Theodore wrote: Sorry - I am unfamiliar with that - can I fix it? You tween objects got garbage collected. Prevent this from happening by storing a reference to them in a non garbage collectible object while they run. ___ Flashcoders mailing

RE: [Flashcoders] Buggy Tween

2010-05-12 Thread Lehr, Theodore
Subject: Re: [Flashcoders] Buggy Tween Lehr, Theodore wrote: Sorry - I am unfamiliar with that - can I fix it? You tween objects got garbage collected. Prevent this from happening by storing a reference to them in a non garbage collectible object while they run

Re: [Flashcoders] Buggy Tween

2010-05-12 Thread John R. Sweeney Jr
Howdy, You tween objects got garbage collected. I was bit very hard by that one in a kiosk touch screen that needed to have certain things happen after the tween was finished. So when garbage collection stopped the tween, things went very messed up and/or locked up. :) Here is how I fixed