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


--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to