# E.currentTarget help

**URL:** https://forum.kirupa.com/t/e-currenttarget-help/294187
**Category:** Uncategorized
**Created:** [August 10, 2009, 5:40pm UTC](https://forum.kirupa.com/t/e-currenttarget-help/294187 "2009-08-10T17:40:04Z")
**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: [August 10, 2009, 5:40pm UTC](https://forum.kirupa.com/t/e-currenttarget-help/294187/1 "2009-08-10T17:40:04Z")

</div>

Hi,  
i have populated a gallery, and i have a code produced as this

```auto

    private function onClick (e : MouseEvent) : void
        {
           
            {
              
            }
            
        }

```

what can i pass so that the clicked image is passed on into the function below

```auto

private function addImage (mc : MovieClip) : void
        {
            
            var con : PicHolder = new PicHolder();
            con.addChild(mc);
            mc.x = 0;
            mc.y = 0;
            con.x = _mc.stage.stageWidth / 2;
            con.y = _mc.stage.stageHeight / 2;
            _mc.addChild(con)
        }

```
