Embed Flash

How To Embed Flash Into HTML

So you have the flash file, you just need to know how to embed the Flash file into a HTML file to see it online. I have seen some of our customers simply upload the swf file without the html filling up the screen with the whole Flash file, this causes the major pixelation of the website since that method stretches the site beyond the default size. In this tutorial we are going to show you how to properly embed flash into your html document. Let’s take a quick tour.

Embed Flash Into Dreamweaver

This is the easiest method to embed flash, first open up Dreamweaver and follow the screenshot below:

The example above is the easiest way to embed flash, but it does require you have the Dreamweaver software. After you have embedded the swf file, save as index.html and upload both the swf file and the index.html to your root directory. This is what the code looks like:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="780" height="255"> <param name="movie" value="file:sidebanner.swf" /> <param name="quality" value="high" /> <embed src="file:sidebanner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="255"></embed> </object>

You could copy and paste this code and place it in your html page to directly embed your flash file without the use of Dreamweaver. Open up your notepad program and simply paste the above code right in, make sure that your change both the width and height and the name of the flash file:

Change To Your Desired Flash Pixel Size

width="780" height="255"

Change The Word “sidebanner” to your filename

<param name="movie" value="file:sidebanner.swf"

Full Flash Embed Example Code

Now let’s take a look at what the whole code looks like including title, head, and body tags. This will especially useful if you do not have Dreamweaver and you want to raw code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Your Webpage</title> </head>

<body>
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=7,0,19,0″ width=”780″ height=”255″>
<param name=”movie” value=”file:sidebanner.swf” />
<param name=”quality” value=”high” />
<embed src=”file:sidebanner.swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”780″ height=”255″></embed>
</object>
</body>
</html>

Embed Flash Using Mimimal Script

Now that you know how to embed using the right and true method, here is a really simple version of embedding flash, sometimes this method does not work but it’s worth a shot.

<embed src="mediaplayer.swf" width="300" height="300" allowscriptaccess="always" allowfullscreen="true" />

Pretty Easy To Embed Flash

See, that wasn’t too hard. Just remember when you upload, you will need to upload both the swf and html files. If you are going to make it your home page, it is a must you name your html page index.html otherwise you will not see your homepage. Take a look at what your upload should look like, there should be 2 files sitting right next to each other.

- embedded html file (index.html)
- swf file (flash)

There you have it! Your now a Embed Flash Pro…

Popularity: 28% [?]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BarraPunto
  • blinkbits
  • BlinkList
  • blogmarks
  • BlogMemes
  • BlogMemes Cn
  • BlogMemes Fr
  • BlogMemes Jp
  • BlogMemes Sp
  • blogtercimlap
  • Blue Dot
  • Book.mark.hu
  • Bumpzee
  • co.mments
  • connotea
  • De.lirio.us
  • DotNetKicks
  • DZone
  • e-mail
  • eKudos
  • Fark
  • feedmelinks
  • Fleck
  • Furl
  • Global Grind
  • Gwar
  • Haohao
  • HealthRanker
  • Hemidemi
  • IndiaGram
  • IndianPad
  • Internetmedia
  • kick.ie
  • laaik.it
  • LinkaGoGo
  • LinkArena
  • Linkter
  • Live
  • Ma.gnolia
  • Meneame
  • MisterWong
  • MisterWong.DE
  • MyShare
  • N4G
  • Netvouz
  • NewsVine
  • NuJIJ
  • PlugIM
  • PopCurrent
  • ppnow
  • Propeller
  • RawSugar
  • Rec6
  • Reddit
  • SalesMarks
  • Scoopeo
  • scuttle
  • Shadows
  • Simpy
  • Sk-rt
  • Slashdot
  • Smarking
  • Socialogs
  • SphereIt
  • Spurl
  • StumbleUpon
  • Taggly
  • TailRank
  • Technorati
  • ThisNext
  • TwitThis
  • Webnews.de
  • Webride
  • Wists
  • Wykop
  • Xerpi
  • YahooMyWeb
  • Yigg

[Post to Twitter] Tweet This Post 



10 Comments For This Post

  1. GCes Says:

    I have almost read all your post and with each passing one the concept of visual effects is getting so clear. :P

  2. Jerry Says:

    Doing great job Excellent post!!!:D

  3. Bison Says:

    Great going guys this posted codes will definitely reduce labor for many ppl…

  4. Lilian Says:

    Very easy codes available everywhere now!!

  5. Billy Says:

    Very neatly packed codes let me know can I use it in any version???

  6. Wset Says:

    Codes are working great work guys!!!hurray

  7. Jerry Galino Says:

    found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later ..

  8. Tim Says:

    HI – good info, thanks. When I upload the files to the server, all I get is a white box. The movie plays when I click it within my computer (stored on my harddrive), but once uploaded, it doesn’t play. ??? The files are present in the same folder on the host server, but do not play.

  9. Alex Says:

    Thank you

  10. diden Says:

    THANKS ALOT!!!!!!!!!!!!!!!!!!!!!!!!!!! finally!!
    my problem solve, what a usefull!!

1 Trackbacks For This Post

  1. Embed Flash | White Sands Digital Says:

    [...] Flash For Those That Don’t Know…read more | digg story Share and Enjoy: These icons link to social bookmarking sites where readers can [...]

Leave a Reply

Subscribe in a reader
Advertise Here

 

September 2010
M T W T F S S
« Nov    
 12345
6789101112
13141516171819
20212223242526
27282930  

























Tweet This Post links powered by Tweet This v1.3.9, a WordPress plugin for Twitter.