PDA

View Full Version : [AS3] flvplayback scale/positioning


intrinsia
10-21-2009, 07:33 PM
I am using the flvplayback component to call a .flv file to load and play. I can successfully get the video to play but there seems to be an issue in the positioning and scaling of the video. The video is 1000x618 and the player has also been scaled to 1000x618, but when I publish the file the video has been scaled down to fit the initial size of the flvplayer which is 320x240. Has anyone else run into this issue?

import fl.video.*;

var myVid:FLVPlayback = new FLVPlayback();
myVid.setScale(1,1);
myVid.x = 0;
myVid.y = 0;
myVid.source = "template_AE_v001 (4).flv";
addChild(myVid);

intrinsia
10-21-2009, 11:53 PM
Figured it out:

import fl.video.*;

var myVideo:FLVPlayback = new FLVPlayback();
myVideo.source = "template_AE_v005.flv";

addChild(myVideo);
myVideo.x=0
myVideo.y=0
myVideo.width=1000;
myVideo.height=618;
myVideo.play();