im trying to make an event listener for a when a tween completes, and im not having any luck, any advise
my script
function startmove(event:KeyboardEvent) {
switch (event.keyCode) {
case 17 :
if ((blasts>0) && (blown)) {
blasts -= 1;
updateblasts();
blown = false;
blastx = ship.x;
blasty = ship.y-(ship.height/2);
bomb = bhold.addChild(new blast());
bomb.name = bomb;
bomb.x = blastx;
//bomb.addEventListener(Event.ENTER_FRAME, dropbomb);
bombtween:Tween = new Tween(bomb, “y”, null, blasty, blasty-200, .5, true);
}
break;
}
}
bombtween.addEventListener(Event.COMPLETE, removebomb);
how can i make it call the removebomb function after the tween is completed???
:ponder: