691 posts
  • 9 Years of Membership
  • Author Level 4
  • Canada
  • Collector Level 2
+2 more
geoken
says
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
  • Affiliate Level 2
  • Author Level 3
  • Collector Level 2
  • 7 Years of Membership
+2 more
ryguy
says

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

by
by
by
by
by
by