# Call function scripted on tween complete

**URL:** <https://forum.kirupa.com/t/call-function-scripted-on-tween-complete/238764>\
**Category:** Uncategorized\
**Created:** [September 14, 2007, 8:14pm UTC](https://forum.kirupa.com/t/call-function-scripted-on-tween-complete/238764 "2007-09-14T20:14:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrndMasterFlash](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Post date:** [September 14, 2007, 8:14pm UTC](https://forum.kirupa.com/t/call-function-scripted-on-tween-complete/238764/1 "2007-09-14T20:14:34Z")

</div>

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](https://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:
