Banner

Tuesday, March 6, 2012

Embed a SWF file in an HTML page

ASK

  • What is the best way to embed a SWF file in an HTML page?

Answer

There are 4 steps to embed a SWF file in an HTML page.

Step 1: Open the Flash movie you have created and export it by renaming the Flash file “yourflashname.swf”, exit after saving it in your web folder.
Step 2: Open the HTML page where you want to embed this Flash movie and insert the code.
Step 3: Open the HTML file in your browser and check your first flash movie online.
Step 4: (Optional) If you have problem embedding the direct Flash SWF file, try to convert SWF to video or other web-friendly formats, for example, AVI, FLV, M
P4, GIF, etc. This indirect way is for easy embedding while retaining the original animation effects.

More details refer to
Flash Embedded in HTML
Long Live HTML5 Makes It a Trend to Convert Flash to HTML5 

Hope this is helpful.

No comments:

Post a Comment