# AS3 delete function

**URL:** <https://forum.kirupa.com/t/as3-delete-function/285369>\
**Category:** flash\
**Created:** [March 31, 2009, 1:30am UTC](https://forum.kirupa.com/t/as3-delete-function/285369 "2009-03-31T01:30:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![surf](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@surf](https://forum.kirupa.com/u/surf)\
**Post date:** [March 31, 2009, 1:30am UTC](https://forum.kirupa.com/t/as3-delete-function/285369/1 "2009-03-31T01:30:23Z")

</div>

Hi,  
I am basically creating an application that prioritises jobs listing…  
so far i can assign a task priority, description …

so basically once the task description and task priority is chosen, the user will click the  
add button, and this will be stored in the database and  
on the screen another mc will appear where the created priority and description assigned will be display. in the mc there will also be a delete button to remove/delete the task…  
what code could i use to remove the task…

so far i have typed the following

mc.task\_mc.delete\_btn.addEventListener(MouseEvent.CLICK, onDeleteClick);

private function onDeleteClick(e:MouseEvent):void  
{

}
