Another Flash Search
Another Flash Search
Out of context: Reply #8
- Started
- Last post
- 16 Responses
- unfittoprint0
//on the stretchMC
changeScale=function(targetX, targetY, speed){
_xscale+=(targetX-_xscale)/speed
_yscale+=(targetY-_yscale)/speed
if(Math.Round(_xscale) == targetX && Math.Round(_yscale) == targetY){
clearInterval(scaleLoop)
}
}
//calling method
scale= function(targetX, targetY, speed){
clearInterval(scaleLoop)
scaleLoop= setInterval(this, "changeScale", 30, targetX, targetY, speed);
}//method for calling [eg: button]
MyButton.onPress = function(){
stretchMC.scale(200, 400, 8)