# Code to control a flv movie using Play, Pause & Stop buttons?

**URL:** <https://forum.kirupa.com/t/code-to-control-a-flv-movie-using-play-pause-stop-buttons/329978>\
**Category:** flash\
**Created:** [November 13, 2012, 7:53pm UTC](https://forum.kirupa.com/t/code-to-control-a-flv-movie-using-play-pause-stop-buttons/329978 "2012-11-13T19:53:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![learner\_7n](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Post date:** [November 13, 2012, 7:53pm UTC](https://forum.kirupa.com/t/code-to-control-a-flv-movie-using-play-pause-stop-buttons/329978/1 "2012-11-13T19:53:22Z")

</div>

Hi,

I have a flv movie called “Surfing.flv” (Instance Name “Surfing”) in VideoBox movie clip. I have 3 buttons called “Play”, “Pause”, “Stop”. The following code for play button doesn’t work. What is the full code work with it? Please help.

```auto
BtnPlay.addEventListener(MouseEvent.CLICK,PlayClickHandler);
function PlayClickHandler(event:MouseEvent):void {
VideoBox.Surfing.play()	;}

```

Thanks in advance for any help.
