A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Simple Tween question

  1. #1
    Senior Member hts5000's Avatar
    Join Date
    Oct 2007
    Posts
    160

    Simple Tween question

    Is there a better way to write this so there is only one tween instead of two?

    Actionscript Code:
    xTween = new Tween(imageMC, "_xscale", Strong.easeInOut, 100, 1, 3, true);
    yTween = new Tween(imageMC, "_yscale", Strong.easeInOut, 100, 1, 3, true);

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    As far as I know, that's how the built-in tweens work, with only one property per tween. There are third party tween libraries (TweenLite is one I've used recently) that allow you to tween multiple properties with just one line of code.

  3. #3
    Senior Member hts5000's Avatar
    Join Date
    Oct 2007
    Posts
    160
    WOW, that seems like a pretty cool plug in. Thanks for the heads up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center