Hello!
I’d like to use this code for a mc when it’s loaded and not with a button.
Is it possible?
OnLoad OnEnterframe OnWhat :sigh:
Thx in advanced man! (maybe woman… :inc: )
//on the button
myButton_btn.onRelease = function() {
tweenBall();
};
//on the mc
function tweenBall() {
easeType = mx.transitions.easing.Bounce.easeOut;
var begin = 20;
var end = 380;
var time = .5;
var mc = ball_mc;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
AS from Actionscript.org