# Custom buttons for flv playback

**URL:** <https://forum.kirupa.com/t/custom-buttons-for-flv-playback/240294>\
**Category:** Uncategorized\
**Created:** [October 1, 2007, 6:54pm UTC](https://forum.kirupa.com/t/custom-buttons-for-flv-playback/240294 "2007-10-01T18:54:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnsson](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Johnsson](https://forum.kirupa.com/u/Johnsson)\
**Post date:** [October 1, 2007, 6:54pm UTC](https://forum.kirupa.com/t/custom-buttons-for-flv-playback/240294/1 "2007-10-01T18:54:32Z")

</div>

Hi!  
I’ve really looked all over the web for this one…

What should I do if I wanted to add custom video control buttons to my video player…

This code doesn’t seem to work:

```auto
vid.fullScreenButton=fullscrn;

```

Here’s the rest of my code:

```auto

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var vid:Video = new Video(160, 120);
vid.x=590;
vid.y=100;
this.addChild(vid);
vid.attachNetStream(ns);
ns.play("http://sjc-v178.sjc.youtube.com/get_video?video_id=x7l-ff1DlrU");
ns.addEventListener(NetStatusEvent.NET_STATUS, netstat);
function netstat(stats:NetStatusEvent) {
 //trace(stats.info.code);
}
var netClient:Object = new Object();
netClient.onMetaData = function(meta:Object) {
     //trace(meta.duration);
 };
ns.client = netClient;

```

Has it something to do with that I created my video player in AS instead of puting it directly on the stage??:huh:

Thanx!!
