无论您使用Flash Satay,swfobject还是其他方法嵌入Flash视频,都可以将许多参数传递给嵌入视频。
我希望这是一个针对以下问题的社区维基:
答案 0 :(得分:2)
Adobe有一个列出some of the possible parameters的对象嵌入引用。值得注意的是allowFullScreen
参数。
以下假设为“Satay Method”:
<object type="application/x-shockwave-flash" data="path/to/file.swf">
<param name="movie" value="path/to/file.swf" />
</object>
Parameter | Type | How ======================================================= align | <param> tag | stage.alignα allowFullScreen | <param> tag | --- base | <param> tag | --- bgcolor | <param> tag | --- classid | attribute | --- codebase | attribute | --- data | attribute | --- flashvars | <param> tag | stage.loaderInfo.parameters or documentObject.loaderInfo.parameters fullScreenAspectRatio | <param> tag | --- height | attribute | stage.stageHeight† id | attribute | ExternalInterface.objectID‡ loop | <param> tag | not directly accessible◊ menu | <param> tag | stage.showDefaultContextMenu movie | <param> tag | --- name | attribute | ExternalInterface.objectID‡ play | <param> tag | not directly accessible◊ quality | <param> tag | stage.quality salign | <param> tag | stage.alignα scale | <param> tag | stage.scaleMode seamlesstabbing | <param> tag | --- swliveconnect | <param> tag | --- width | attribute | stage.stageWidth† wmode | <param> tag | ---
†仅当scale
设置为no_scale
时
‡对于跨浏览器兼容性,必须同时存在id
和name
属性,并将其设置为相同的值。
◊关于如何间接访问该值,请参阅this question
α注意:不确定align
,salign
或两者是否可通过stage.align