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
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…
// 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