# FLV player with buttons

**URL:** https://forum.kirupa.com/t/flv-player-with-buttons/262024
**Category:** flash
**Created:** [June 2, 2008, 6:59pm UTC](https://forum.kirupa.com/t/flv-player-with-buttons/262024 "2008-06-02T18:59:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)
#### Post date: [June 2, 2008, 6:59pm UTC](https://forum.kirupa.com/t/flv-player-with-buttons/262024/1 "2008-06-02T18:59:56Z")

</div>

hi everybody, i’m working on the video player from [gotoandlearn.com](http://gotoandlearn.com)  
Now i want to add to images underneed the player wich refer to a FLV. When i click on one of these images the video should start playing in the player. So no xml has to be used just 2 images and they need to load a external FLV when they get clicked. How can i add that to this video player ?

This is the player i am talking about [http://www.gotoandlearn.com/player.php?id=5](http://www.gotoandlearn.com/player.php?id=5)

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 3, 2008, 8:27am UTC](https://forum.kirupa.com/t/flv-player-with-buttons/262024/2 "2008-06-03T08:27:55Z")

</div>

my god!

you stick the image in an MC and say on the main timeline

this.MCimage.onRelease = function(){

}

---

<div class="post-metadata">

### Author: ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)
#### Post date: [June 3, 2008, 2:13pm UTC](https://forum.kirupa.com/t/flv-player-with-buttons/262024/3 "2008-06-03T14:13:33Z")

</div>

So Lets say my clickable MC’s would be MC\_1 and MC\_2

And my videos would be 1.flv and 2.flv

then i would need to add this script:

```auto
 
this.MC_1.onRelease = function(){
ns.play("1.flv");
}
 
this.MC_2.onRelease = function(){
ns.play("2.flv");
}

```

am i correct ?

---

<div class="post-metadata">

### Author: ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)
#### Post date: [June 3, 2008, 4:08pm UTC](https://forum.kirupa.com/t/flv-player-with-buttons/262024/4 "2008-06-03T16:08:53Z")

</div>

take a peek at [this tutorial here](http://livedocs.adobe.com/studio/8/exploring/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=05_Video_Pod.html) - after you get it set up per the tutorial you can use:

```auto

this.yourImageClip.onRelease = function() {
      yourFlvPlackBack.stop();
      yourFlvPlackBack.close(); 
      yourFlvPlackBack.contentPath = "pathtoyourmovie.flv";
      yourFlvPlackBack.play(); 

}

```

---

<div class="post-metadata">

### Author: ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)
#### Post date: [June 3, 2008, 7:37pm UTC](https://forum.kirupa.com/t/flv-player-with-buttons/262024/5 "2008-06-03T19:37:16Z")

</div>

thanks thats what i need.  
:thumb2:
