We have introduced several ways to create Flash SWF in the previous blog titled “Flash How To“, then what to do next? Scroll down and you will see the topic today – embed the created Flash SWF into an HTML webpage.
To embed the Flash movie you just made into an HTML page, go back to the Flash program where you initially created the Flash object, and then do the following steps:
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 this code:
Note: This is the minimum code you need to embed a Flash movie in a browser. A broken icon will appear on the Web page if the user does not have the Flash plug-in installed.
Note: In the code above there is both an “embed” tag and an “object” tag. This is because the “object” tag is recognized by Internet Explorer, and Netscape recognizes the “embed” tag and ignores the “object” tag.
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, MP4, GIF, etc. This indirect way is for easy embedding while retaining the original animation effects.