A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Embeding Flash into HTML

  1. #1
    Senior Member
    Join Date
    Jul 2004

    Embeding Flash into HTML

    This is a sorta a flash question. I am trying to embed my flash file into an HTML page which I was told I should do so that all type of browsers can see the web site.

    So this is how I embed the file...

    <embed src="file.swf" width="100%" height="100%">

    Using windows it looks fine. Now I still think the < width="100% height="100%> is wrong. one reason is when I few the site using Linux, I see the site, but a lot smaller. To small really.

    Does anyone know what code I should be using vs what you see?

    Thanks for everyones input ahead of time.

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Out In The Pasture
    Generate an html page from flash, using File/Publish Settings. Then either use the html page flash creates, or use the object code in the source of the page on another html page. It ought to be compatable with all browsers.

  3. #3
    Senior Member
    Join Date
    Jul 2004
    Your right. I guess the HTML file the "publish" makes should work for all of them.

    Thanks Again

  4. #4
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    East Dulwich
    Full code to embed .swf into .html

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    WIDTH="880" HEIGHT="600" id="stage" ALIGN="">
    <PARAM NAME=movie VALUE="YOUR.swf">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=bgcolor VALUE=#333333>
    <EMBED src="YOUR.swf" quality=high bgcolor=#333333 WIDTH="880" HEIGHT="600" NAME="" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
    If someone tells you it can't be done,
    it's probally because they don't know how.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center