1

尝试:

我正在尝试在另一个动态 mc 中使用 FLVPlayback() 组件加载 FLV,并将其放置在电视屏幕上。

问题:

---它不会在左上角加载。---它可以缩放以适应电视屏幕的宽度,但在下方和上方有这个时髦的空间。

问题:

如何将视频放在左上角?我怎样才能使它适合电视屏幕的高度?

代码:

import flash.display.*;
import fl.video.*;

var my_mc:MovieClip = new MovieClip(); 
addChild(my_mc); 

var myVideo:FLVPlayback = new FLVPlayback();
myVideo.source = "http://EdVizenor.com/edgen/EpicLogo.flv";
myVideo.align = StageAlign.TOP_LEFT; /// This does not work :(
my_mc.addChild(myVideo);

One.BlackScreen.addChild(my_mc);
my_mc.width = One.BlackScreen.width;
my_mc.height = One.BlackScreen.height;

...

FLA 源下载

源 FLA 文件在这里:http ://www.edvizenor.com/Help.fla 它有图像和电视屏幕等...

更新问题:2012 年 4 月 21 日

下面的答案是正确的,但是当我使用此视频源并且不更改任何其他内容时,我遇到了同样的问题。我怎样才能解决这个问题?

myVideo.source = "http://EdVizenor.com/Boom.flv"; /// DOES NOT WORK
4

1 回答 1

4

这是因为您的 .flv 文件与影片剪辑的比例不同。

import flash.display.*;
import fl.video.*;

var my_mc:MovieClip = new MovieClip(); 
addChild(my_mc); 

var myVideo:FLVPlayback = new FLVPlayback();
myVideo.source = "http://EdVizenor.com/edgen/EpicLogo.flv";
myVideo.align = StageAlign.TOP_LEFT;
myVideo.scaleMode = VideoScaleMode.EXACT_FIT;
myVideo.width = One.BlackScreen.width;
myVideo.height = One.BlackScreen.height;

my_mc.addChild(myVideo);
myVideo.play();

One.BlackScreen.addChild(my_mc);
my_mc.width = One.BlackScreen.width;
my_mc.height = One.BlackScreen.height;
于 2012-04-21T07:04:19.317 回答