PDA

View Full Version : HTML and Flash


mkweber517
04-30-2006, 05:24 PM
Hello - just now taking my first HTML class at school and learning from the ground up - as in all I can do right now is build a table. If I have a flash animation I want to include, can anyone tell me the syntax to use?

Thanks!
-Mike Weber

lobotomir
05-09-2006, 03:31 PM
I can think of two ways.
First, the "vanilla" way, or traditional object/embed code:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

And then there are funkier ways: "SWFObject is a small Javascript file used for embedding Macromedia Flash content. The script can detect the Flash plug-in in all major web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible." Download at http://blog.deconcept.com/swfobject/ .