flash AS question

Out of context: Reply #5

  • Started
  • Last post
  • 40 Responses
  • fyoucher10

    Greensock as redant mentioned above is probably best and something you should learn as it's kind of a standard nowadays (TweenMax, TweenLite, or TweenNano).

    Or if you're using AS2, mctween2 is really easy to understand if you've never used a tweening engine before.
    http://hosted.zeh.com.br/mctween…

    For mctween2, just download the AS file and put it next to your FLA. There are extensions you can download but just scroll down the Downloads page and download the AS file instead.

    Then in your actions panel in a frame where your movieclip is type the following:
    (Assuming your FLA is 30 FPS, it's AS2, and the movieclip is called myClip)

    #include "mctween_2_28_29.as"
    //Start off at 150% scale
    myClip._xscale = myClip._yscale = 150;

    //Scale to 0% over 5 seconds
    myClip.scaleTo(0, 5, "linear");
    //The easing equation can be many different things.
    //Look up those string values ("easeOutQuart", "linear", etc) here >
    //http://hosted.zeh.com.br/mctwe...

    //fade in 0 > 100% alpha
    myClip._alpha = 0;
    myClip.alphaTo(100, 1, "linear");

    //fade out at end
    myClip.alphaTo(0, 1, "linear", 4);
    // the last parameter 4 is the delay value. So it'll fade out after 4 seconds.

    • Yep...that's it!! =)
      was using fuzekit...
      Mishga

View thread