Sunday, March 30, 2008

Introduction to embedding flash into html

We will show you how to embed flash into html webpages. Basically when you have completed your flash file (whether its video, audio, or a full flash webpage), you select 'publish' (file--> publish). When you select publish, Flash takes your .fla file and converts it to a .swf and then makes a .html page which automatically embeds the .swf file. The .swf file then needs to be uploaded to the Typhoon server. The html code for the published .fla file is below.



You can use this html code as your page (it will consist of only the flash file). You can also embed the .swf file into your existing webpage by copying the param, object, and embed tags of the html code, highlighted below.



Here is the code itself:


Some viewers may require that you close the embed tags, so adding a </embed> in the line before the object may be helpful.

The height and width of the video can be altered by changing the parameters in BOTH the object and the embed tags.

No comments: