I am using as3 to bring in my .flv and have a buffer as well. I thought it was working fine, but when I open it in ie or google chrome the flv gets stretched out vertically across the whole swf area. Then I refresh the browser window and the video is the size I set it too what I want and looks perfectly normal.
I don’t have this problem on the .fla’s where I dont set the width and height using as3 or if I don’t include the buffer(which I need).
I would rather be setting my width and height with as3 because I want to do fullscreen and have good quality. (as well as when I try to set a size in the adobe converter it doesnt work. it says im setting it to like 500 px, but im not and it looks messed up and screws up video quality and such. I definitely need to learn more about this, but for now I’m in a time crunch)
is there an easy way i can make the width and height inherit in the first place? any advice? I am also going to try and figure out how to add a zoom and full screen future, so I’m hoping an as3 fix will provide me with more flexibility.
Thanks so much!
Here is the code (pretty basic as I’m quite new to as3):
stop();
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
import fl.video.MetadataEvent;
var vid:FLVPlayback = new FLVPlayback();
vid.source =“flv/bp1.1 - 93.flv”;
vid.skinBackgroundAlpha= 0.1;
addChild(vid);
vid.skin=“swf/SkinUnderAllNoFullNoCaption.swf”;
vid.x = 42;
vid.y = -65;
vid.height= 562;
vid.width = 500;
vid.skinAutoHide= false;
vid.bufferTime = 10;
mcBufferingIndicator.visible = true;
function onPlayerBuffered(event:VideoEvent) {
vid.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, onPlayerBuffered);
}