使用SWFLoader设置影片大小的问题

时间:2012-04-27 08:11:02

标签: html actionscript-3 flash flex flex3

我有以下问题:

当我通过HTML标签嵌入swf电影时,电影具有给定的尺寸。不幸的是,使用SWFLoader(设置高度和宽度)执行此操作不起作用。电影似乎有全屏尺寸。

编辑:

这是SWFLoader的代码(它被缩放到240x320但是加载的电影要大得多,并没有填满整个窗口):

<mx:SWFLoader  id="video" autoLoad="true" height="240" width="320" scaleContent="true" maintainAspectRatio="true" source="http://movie_address" />

以下是标签的工作代码:

<object width="320" height="240" ><param name="allowfullscreen" value="true" /><param name="movie" value="http://movie_address" /><embed src="http://movie_address" type="application/x-shockwave-flash" allowfullscreen="true" width="320" height="240"></embed></object>

如何解决问题?

谢谢!

1 个答案:

答案 0 :(得分:0)

尝试使用scaleContent =“true”;

<s:SWFLoader id="loader1" source="@Embed(source='sample.swf')" x="100" y="100" 
                 width="200" height="200" scaleContent="true"/>
相关问题