Any updates on this? I'm curious myself. --- In [email protected], "Rich Tretola" <[EMAIL PROTECTED]> wrote: > > What about images that are loaded through bindings? How do I remove > the orginal image from memory when the binding changes which causes > the load of a replacement image? > > Rich > > On 8/14/06, Brian Deitte <[EMAIL PROTECTED]> wrote: > > Setting it to null (along with removing any other references to the > > class) is the answer. The variable is removed when it is out of scope: > > so if you define the variable in a function, it is removed when the > > function ends. If it's a class-level variable and you still have the > > class around, there's simply no way to get rid of the variable > > reference, which is a small amount of memory anyways. -Brian > > > > > -----Original Message----- > > > From: [email protected] > > > [mailto:[EMAIL PROTECTED] On Behalf Of lostinrecursion > > > Sent: Monday, August 14, 2006 12:45 PM > > > To: [email protected] > > > Subject: [flexcoders] Flex 2 Garbage Collection (based on AS3 changes) > > > > > > Hi all, > > > > > > I used garbage collection methods a lot in my prior RIAs to keep the > > > application running smooth as it progressed. > > > > > > But, now, being that I am not a total pro, I'm not sure how we > > > accomplish this. > > > > > > Actionscript 3.0 does not allow the "delete" keyword to be used when > > > trying to get rid of references to an Object. > > > > > > So if I create a new instance of a class: i.e. var myClass:MyClass = > > > new MyClass(); > > > > > > How do I then get rid of the myClass reference when I no longer need > > > it? I guess I could set it to undefined or null, but that still leaves > > > a blank variable lingering in memory. > > > > > > How do you folks do it? > > > > > > > > > > > > > > > > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Search Archives: > > > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > -- > Rich Tretola > <mx:EverythingFlex/> > http://www.EverythingFlex.com >

