quick flash Q

Out of context: Reply #5

  • Started
  • Last post
  • 25 Responses
  • silencer0

    Use the scripts I sent, trust me it's really easy.
    You can ignore the first frame of scripts.
    The second frame can be used for any movie clip.

    give your button an instance name my_btn

    Paste this script on frame two.

    my_btn.onRelease = function() {
    var xTween = new Tween(my_mc, "_x", Math.LinearTween);
    xTween.startTween(100, 20);
    };

    Call your movie clip instance my_mc

    the bit which says "_x" can be changed to anything("_alpha, "_y" , "_rotation" etc)

    the bit where it says "LinearTween"
    can be changed to any of the functions initialised on the 1st frame. ("easeOutback", "easeOutQuart" etc)

    the first value "100" is your final _x position (or whatever)

    and the last value "20" is your speed.

    Hope this helps.

View thread