# Full Browser FLV

**URL:** <https://forum.kirupa.com/t/full-browser-flv/283618>\
**Category:** flash\
**Created:** [March 9, 2009, 8:14am UTC](https://forum.kirupa.com/t/full-browser-flv/283618 "2009-03-09T08:14:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danonym](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@danonym](https://forum.kirupa.com/u/danonym)\
**Post date:** [March 9, 2009, 8:14am UTC](https://forum.kirupa.com/t/full-browser-flv/283618/1 "2009-03-09T08:14:06Z")

</div>

Hey guys,

After asking in 2 german forums and an english one without any answers, ill try it here…

I just want an flv as a background, full browser, without cropping and keeping aspect ratio just like here:  
[http://blog.b13ultimatum-lefilm.com/#/district13-ultimatum-teaser](http://blog.b13ultimatum-lefilm.com/#/district13-ultimatum-teaser)

I searched the net for weeks now and tried it several different ways, here some code that doesnt work, because theres always a border on top and below the video and i cant imagine why…

```auto
// ActionScript 2.0
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
 
ns.onMetaData = function(item:Object):Void {
 trace("metaData");
 
 // Resize video instance.
 myVideo._width = Stage.width;
 myVideo._height = (myVideo._width / 16) * 9;
    if(myVideo._height > Stage.height){
        myVideo._height = Stage.height;
        myVideo._width = (myVideo._height / 9) * 16;
    }
// Center video instance on Stage.
 myVideo._x = (Stage.width-myVideo._width)/2;
 myVideo._y = (Stage.height-myVideo._height)/2;
};
 
myVideo.attachVideo(ns);
ns.play("video.flv");

myVideo.smoothing = "true";

```

The FLVs will always be 16:9 aspectratio.

Hope someone can help me with this:hang:

greetings,  
Danonym
