开发者

How do Change swf file dimension in html....?

I just built a flex applcation with AS3 only.. the generated swf will expand as much as browser's window..I wish to reduce the dimension of swf file...any ideas?? Thank开发者_运维知识库s..


You may need to specify your swf dimensions eg:

[SWF(width="640", height="480")]

If you're viewing it directly in your browser, you should embed your swf inside an html document and specify the dimensions of your swf. If this is for a public facing website, I'd recommend using SwfObject.js. Or if you aren't comfortable with Javascript you can use the object tag:

  <object width="640" height="480">
    <param name="movie" value="your_file.swf">
    <embed id="embed" src="your_file.swf" width="640" height="480"></embed>
  </object>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜