Hi there, For what it's worth...
Previous to flash 8, the flash player uses both reference counting and mark/sweep garbage collection, which kicks in every 60 seconds or so, or when the number of allocated objects is increased by 20%. So the reference counting takes care of the objects without circular references, and the garbage collection takes care of the rest. removeMovieClip is problematic in that it's likely to leave lots of hanging references, and there's not a great deal you can do about that - it sounds like you have class dependancies outside of the movieclip object itself. Have you tried using some kind of factory type approach to manage your deletion/creation? Can you give more information about how your objects are being corrupted? Alias On 8/21/06, [b) a d i <[EMAIL PROTECTED]> wrote:
> Have you tried mc.removeMovieClip() ? yes...i should have mentioned it... a little background... this is a question i've had for a long time, but didn't have anyone to ask it to :)...i've been on the macromedia forums, but most of the time i don't get the answer i need or i get some wise-aker who feels the need to over-compensate...i say that to express gratitude at having found flashcoders...populated by real flash coders :) the problem i have is after calling removeMovieClip or delete is that when i need to re-instantiate the object...it's either corrupt or not created properly...i was a little upset to find so many dangling pointers after i went thru so much trouble to clean up after myself... thanks b ----- Original Message ----- From: "Ramon Miguel M. Tayag" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <[email protected]> Sent: Monday, August 21, 2006 8:50 AM Subject: Re: [Flashcoders] oop question kind of... > Have you tried mc.removeMovieClip() ? > > On 8/21/06, [b) a d i <[EMAIL PROTECTED]> wrote: > > Hi, > > i've noticed that just because you call delete on a movie clip or even an > > object doesn't mean that it totally goes away. Does anyone know how to > > destroy and object and really have it go away since there are no destructors > > in as2? > > > > thanks > > > > b > > -- > Ramon Miguel M. Tayag > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

