加载具有透明背景的外部 SWF
只是想得到一些专业意见,是否可以加载外部SWF并将该SWF的背景设置为透明?
这个问题与在 HTML 页面中嵌入 SWF 无关。我已经知道将 WMODE 设置为透明将在浏览器中创建具有透明背景的 SWF。
Just to get some professional opinions, is it possible to load in an external SWF and set that SWF's background to transparent?
This question has nothing to do with embedding the SWF in an HTML page. I already know that setting the WMODE to transparent will create a SWF with a transparent background in a browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不相信有这样的事。假设我正确理解你的问题,舞台的背景不能像 CS4 中的颜色选择器一样透明,因为它没有 alpha,而且我怀疑如果你不能的话,你可以用代码来做到这一点。
I don't believe that there is. Assuming that I understood your question right, the stage's background cannot be transparent as the color picker in CS4 for it doesn't have the alpha, and I doubt you could do it with code if you couldn't there.
假设您正在谈论在 swf 中加载 swf:
仅当您在独立播放器中打开 swf 时才会使用背景颜色属性。在浏览器内部,您可以通过 swfobject 设置此属性(也可以使用其他嵌入方法),否则它始终是透明的。事实上,在编译选项中它被称为“default-background-color”,而不是“background-color”,我认为他们应该在 Flash IDE 中更新它以使其更清晰...
我建议使用以下命令绘制或放置图形加载的 swf 下方所需的背景颜色。
希望这对您有帮助
Assuming you are talking about loading swfs inside swfs:
The background color property is only used when you open the swf inside the standalone player. Inside the browser, you can set this property via swfobject (other embed methods are available), other wise it is always transparent. In fact, in the compile options it is called 'default-background-color', not 'background-color', I think they should update this in the Flash IDE to be clearer...
I would recommend drawing or placing a graphic with the desired background color just underneath the loaded swf.
Hope this helps you