# Adding second function

**URL:** https://forum.kirupa.com/t/adding-second-function/248015
**Category:** Uncategorized
**Created:** [January 2, 2008, 9:13pm UTC](https://forum.kirupa.com/t/adding-second-function/248015 "2008-01-02T21:13:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kagamushu](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kagamushu](https://forum.kirupa.com/u/kagamushu)
#### Post date: [January 2, 2008, 9:13pm UTC](https://forum.kirupa.com/t/adding-second-function/248015/1 "2008-01-02T21:13:33Z")

</div>

This is a noob question. Here is my current code. Clicking on the button “voi” plays the video in the player, so far so good. I would like for an image to appear beside the player at the same time. I just don’t know where and what code to add so the image appears. Please help!

trace(“img=”+voi);  
voi.addEventListener(MouseEvent.CLICK, pm);

function pm(e) {  
trace(“pm”);  
video.play("[http://www.imaktion.com/videos/fatima.flv")](http://www.imaktion.com/videos/fatima.flv)  
}
