ok i need help making this function work for multiple buttons. instead of having to make a function for every button.
function tweenline(easeType) {
var begin = 20;
var end = 200;
var time = 20;
var mc = line;
lineTween = new mx.transitions.Tween(mc,"_yscale",easeType,begin,end,time);
/////above code is on same line
}
_root.line.onRelease= function(){
tweenline(mx.transitions.easing.Elastic.easeOut);
}
as you can see this one is set up for one button.
i tried figurgn this out myself as i am kinda gettin the hang of function but keep coming out unsuccesful.
i want to be able to specify the begin,time,end withitn the button function
_root.line.onRollover= function(){
tweenline(20,200,20);///////something like this. but i cant get it,
}
anyone out there can help?