actionscipt help

  • Started
  • Last post
  • 1 Response
  • tonks

    can someone help me put this mx tweening script as part of a simple function i have to move something. (at the moment its set to move images to 300 but this is the bit I need as a variable I guess.

    mx.transitions.easing.Regular.ea... images._x, 300, .5, true);

    and this is my function....

    function moveObject(xValue) {
    images._x = xValue;
    }
    // (if its a movie clip):
    button1.onRelease = function() {
    moveObject(100);
    };
    button2.onRelease = function() {
    moveObject(200);
    };

    so basicly I want it to move to those points with the easing options in the first script.

    may seem stupid but once I suss this im plain sailing.. cheers!

  • tonks0

    forget it.. i did it. im a dumbass... why cant you delete posts on this thing?