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:

http://flashmovie.swf

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.

http://flashmovie.swf

Click the button below to view the example. You may adjust the size of the popup window, the Flash will auto zoom and auot fit into the web browser.

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.

http://flashmovie.swf

Click the button below to view the example. You may adjust the size of the popup window, the Flash will auto zoom and auot fit into the web browser.

Artikel ini saya copy dari : http://www.aleosoft.com/flashtutorial_autofit.html

Iklan