691 posts
  • Has been part of the Envato Community for over 8 years
  • Has sold $5,000+ on Envato Market
  • Located in Canada
  • Has collected 10+ items on Envato Market
+2 more
add your tweens in arrays so they won’t be deleted by the flash player garbage collector… or use tweener.

This is the best solution. Declaring them globally works, but unless you litter your code with a bunch of globally referenced tween instances that you may or may not use you can’t really use this method in a loops.

An array is the easiest way to get all the benefits of globally declared vars for objects that are created dynamically.

70 posts
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 6 years
+2 more

TweenLite is an elegant solution. I enjoy working with it.

The license allows you to use it in commercial projects and I definably recommend donating to the project. (you’ll get some bonus goodies!)

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