# Passing event(e.target) into a funciton

**URL:** <https://forum.kirupa.com/t/passing-event-e-target-into-a-funciton/297745>\
**Category:** Uncategorized\
**Created:** [October 7, 2009, 10:36pm UTC](https://forum.kirupa.com/t/passing-event-e-target-into-a-funciton/297745 "2009-10-07T22:36:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phastings](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@phastings](https://forum.kirupa.com/u/phastings)\
**Post date:** [October 7, 2009, 10:36pm UTC](https://forum.kirupa.com/t/passing-event-e-target-into-a-funciton/297745/1 "2009-10-07T22:36:26Z")

</div>

Hi,  
I’m trying to break out stuff that happens on a mouse click into a function so that function can be called at another time. here’s what i’m trying to do:

function itemClicked(e:Event):void {  
passoff(e.target);  
trace(e.target.name); //menuItem1  
}

function passoff(e:???){  
trace("NAME: "+e.name);  
}

the above is obviously not working but i’m wondering how this should be done. i’m clueless.
