as3 FLV component posistion / align issue - FLVPlayback();



尝试:

我正在尝试在另一个动态 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它具有图像和电视屏幕等...

更新问题:4/21/12

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

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

这是因为.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;

相关内容

  • 没有找到相关文章

最新更新