Flash auto-fit into the screen or web browser

10 十一月, 2009 at 6:50 上午 發表留言

,,

Quoted from http://www.aleosoft.com/flashtutorial_autofit.html:

How to make a Flash SWF file auto-fit into the screen or web browser?

After you have included the Flash SWF file to your HTML page, you can open the HTML page with your HTML editor and edit the HTML code.

Look for the code that embeds the Flash Movie. It should look similar to this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0″ width="480″ height="125″>
<param name="movie" value="flashmovie.swf" />
<param name="quality" value="high" />
<embed src="flashmovie.swf" quality="high" type="application/x-shockwave-flash" width="480″ height="125″ pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

To make the Flash auto zoom and auto fit into its container, you should change the code as following. The changes are shown in red.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0″ width="100%" height="100%">
<param name="movie" value="flashmovie.swf" />
<param name="quality" value="high" />
<PARAM NAME="SCALE" VALUE="exactfit">
<embed src="flashmovie.swf" quality="high" type="application/x-shockwave-flash" width="100%" height="100%" SCALE="exactfit" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

 

To make the Flash auto zoom and auto fit into its container without distortion, that’s, keep the aspect ratio, you should change the code as following. The changes are shown in red.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0″ width="100%" height="100%">
<param name="movie" value="flashmovie.swf" />
<param name="quality" value="high" />
<PARAM NAME="SCALE" VALUE="default">
<embed src="flashmovie.swf" quality="high" type="application/x-shockwave-flash" width="100%" height="100%" SCALE="default" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

 

Entry filed under: Flash, Multimedia.

SQL 分頁 Flash overlay z-index control in web

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Google photo

您的留言將使用 Google 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s

Trackback this post  |  Subscribe to the comments via RSS Feed


近期文章


%d 位部落客按了讚: