var tm:Timer = new Timer(30);
var x_speed:Number=0;
var y_speed:Number=0;

this.leftBtn.addEventListener(MouseEvent.MOUSE_DOWN,leftmove);
function leftmove(evt:MouseEvent){
this.rocket.x=rocket.x-5;
}
this.rightBtn.addEventListener(MouseEvent.MOUSE_DOWN,rightmove);
function rightmove(evt:MouseEvent){
this.rocket.x=rocket.x+5;
}

this.upBtn.addEventListener(MouseEvent.MOUSE_DOWN,upmove);
function upmove(evt:MouseEvent){
this.rocket.y=rocket.y-5;
}

this.downBtn.addEventListener(MouseEvent.MOUSE_DOWN,downmove);
function downmove(evt:MouseEvent){
this.rocket.y=rocket.y+5;
}

this.rotateBtn.addEventListener(MouseEvent.MOUSE_DOWN,rotatemove);
function rotatemove(evt:MouseEvent){
this.rocket.rotation=this.rocket.rotation+15;
}

this.antBtn.addEventListener(MouseEvent.MOUSE_DOWN,antimove);
function antimove(evt:MouseEvent){
this.rocket.rotation=this.rocket.rotation-15;
}