492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says
Ok…so I’m getting my hands wet with AS3 and was looking into the basic functions. Now from what I could figure out from the internet and other resources, removeMovieClip in AS2 is replaced by removeChild in AS3 . But I realised that the mc is still there in the memory and just that it not there in the display list. How do I remove it entirely from the memory also? If I try deleting it by saying
delete my_mc
I get an error saying
1189: Attempt to delete the fixed property my_mc.  Only dynamically defined properties can be deleted.
Anyone can help? Thanks.
3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

you cant do that. if things are not on the stage and are no longer used by your scripts flash player will delete that stuff automatically.

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says

oh…i see..thanks for clearing that up…I was just apprehensive that it will be using up that memory. Just imagine if I have a set of large images in a mc.

Can you point me to any nice online resource for AS3 …from basics?

905 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
unchartedrealms says

There is a great video on tv.adobe.com about as3 CS4 . it is a great intro into as3

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says
There is a great video on tv.adobe.com about as3 CS4 . it is a great intro into as3
Thanks for that. I’ll definitely look into it.
3256 posts
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
ParkerAndKent says

When you want to delete an object definitively you need to prepare it to be garbage collected. To do this you need of course to remove the object from the display list through removeChild(), but you also need to remove any relation that this object and its childs can have with other objects, like event listeners etc…

Anyway the garbage collection is not immediate, if you monitor your memory usage you will notice that the garbage collection happens with regular intervals.

3256 posts
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
ParkerAndKent says

I use, as good practice, to register a listener for the Event.REMOVED_FROM_SATGE to any object that I know I will remove in my application and in this listener I delete all the relations that this object has with the rest of the application.

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says
I use, as good practice, to register a listener for the Event.REMOVED_FROM_SATGE to any object that I know I will remove in my application and in this listener I delete all the relations that this object has with the rest of the application.

Wow…that is a great tip. I’ll keep that in mind. Thank you very much. :)

1234 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 50+ items on Envato Market
+5 more
MBMedia says
Can you point me to any nice online resource for AS3 …from basics?

http://www.actionscript.org/resources/authors/364/Bryan-Grezeszak

the 3 articles entitled “AS 3.0 Coming From 2.0” are what I always point people to for moving from AS2 to AS3

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says
http://www.actionscript.org/resources/authors/364/Bryan-Grezeszak

the 3 articles entitled “AS 3.0 Coming From 2.0” are what I always point people to for moving from AS2 to AS3

Thank you MBMedia. So you wrote them? Really great articles. Thanks for sharing.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by