it sounds to me that you are using the same depth or instance name for a new clip before removing the old one.
On 8/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>Have you tried using some kind of factory type approach > to manage your deletion/creation? yes, i use adts quite often...in fact i use the mvc pattern for quite a few apps i create. So i have views that instantiate whatever movieclips it needs and deletes them when it doesn't need them. the problem begins when a view needs to go away either because it is being replaced by another view or refreshed. i noticed that the clips that were supposed to be deleted weren't really...futhermore, when being reinstantiated, they won't accept values...they exist, but they're undefined somehow... b -------------- Original message -------------- From: Alias <[EMAIL PROTECTED]> > 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 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" > > To: "Flashcoders mailing list" > > 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 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 > > > _______________________________________________ > > > Flashcoders@chattyfig.figleaf.com > > > 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 > > > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > 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 > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > 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 _______________________________________________ Flashcoders@chattyfig.figleaf.com 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
-- j:pn http://www.lennel.org _______________________________________________ Flashcoders@chattyfig.figleaf.com 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