Saturday, 26 September 2009

action script for scaling an objects x width and y height, with rotation.

stop();
this.onEnterFrame=function(){
object_mc._rotation+=10;
object_mc._x-=5;
object_mc._x+=5;

press_btn.onPress=function() {
object_mc._height+=100;

}}
pressless_btn.onPress=function() {
object_mc._width-=100;
}

pressless_btn._x=10;

No comments: