1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to add .SWF files to the html webpage

Discussion in 'Graphics & Multimedia' started by soccerfriend, Mar 28, 2007.

  1. #1
    Hi,

    My client have sent me banner as .SWF file to be advertised on my site www.SoccerFriend.com.

    I tried to add this file as

    <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="320" HEIGHT="150" id="Yourfilename" ALIGN="">
    <PARAM NAME=movie VALUE="http://www.soccerfriend.com/banners/jumptv.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333399> <EMBED src="http://www.soccerfriend.com/banners/jumptv.swf" quality=high bgcolor=#333399 WIDTH="468" HEIGHT="150" NAME="Yourfilename" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT>

    but it did not work out.

    Does anyone knows how to add the .SWF file to the webpage

    The response will be greatly appreciated

    Thanks
     
    soccerfriend, Mar 28, 2007 IP
  2. I-Got-IT!

    I-Got-IT! Peon

    Messages:
    92
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="#" height="#" id="XXXXX" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="URL" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#000000" /><embed src="URL" menu="false" quality="high" scale="noscale" bgcolor="#000000" width="#" height="#" name="XXXXX" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>

    hello, the above one is of the correct format, would you like to compare it for awhile and check out what's the error?
     
    I-Got-IT!, Mar 28, 2007 IP
  3. cakker

    cakker Well-Known Member

    Messages:
    165
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    hi, there is a javascript for this, so you wont get "click here to activate content" when it is loaded.
    google for swobject.js
    krisztian
     
    cakker, Mar 28, 2007 IP
  4. phd

    phd Active Member

    Messages:
    496
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #4
    This usually happens in IE,

    check Firefox.... you might not get this things....may be Microsoft has put restriction to load the unknown object, you need to click to activate the object
     
    phd, Mar 29, 2007 IP
  5. shuttle

    shuttle Active Member

    Messages:
    429
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #5
    If you have Windows XP and if you are using Windows Movie Maker, then use the Riva FLV Encoder, a free. The converter based on the open-source FFMPEG encoder will help you to convert the video.

    Then use the open-source FlowPlayer Flash applet to actually embed the FLV video in our web pages.
     
    shuttle, Mar 29, 2007 IP
  6. phacker

    phacker Peon

    Messages:
    99
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    phacker, Mar 29, 2007 IP
  7. ronnellpadilllo

    ronnellpadilllo Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i have a blog and i want to add an SWF file into it.
    first question is, do i have to upload the file in the web? if yes, where? im a beginner so please.. thanks/
     
    ronnellpadilllo, Nov 1, 2009 IP
  8. solve

    solve Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    There are two method for embeding flash:

    1. using static publishing method
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>SWFObject 2 static publishing</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="scripts/swfobject.js"></script>
    <script type="text/javascript">
    swfobject.registerObject("flashId", "9.0.0", "flash/expressInstall.swf");
    </script>
    </head>
    <body>
    <div>
    <object id="flashId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="250" height="300">
    <param name="movie" value="flash/testFlash.swf" />
    <param name="FlashVars" value="name=Dr.Solve"/>
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="flash/testFlash.swf" width="250" height="300">
    <param name="FlashVars" value="name=Dr.Solve"/>
    <!--<![endif]-->
    <div>
    <h1>Alternative content</h1>
    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    </body>
    </html>


    2. Dynamic Method
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>SWFObject 2 dynamic publishing example page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="scripts/swfobject.js"></script>
    <script type="text/javascript">
    var flashvars = {};
    flashvars.name="Dr.Solve"
    var params = {};
    params.quality = "high";
    params.menu = "false";
    params.scale = "noscale";
    params.wmode = "transparent";

    var expressInstallSwfurl="flash/expressInstall.swf";
    var attributes = {};

    swfobject.embedSWF("flash/testFlash.swf", "testFlash", "250", "300", "9.0.0",expressInstallSwfurl, flashvars, params, attributes);
    </script>
    </head>
    <body>
    <div id="testFlash">
    <h1>Alternative content</h1>
    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>
    </body>
    </html>

    Hope this help you to Solve your Falsh Embedding Problem

    Thanks
     
    solve, Nov 1, 2009 IP
  9. jumpjump

    jumpjump Peon

    Messages:
    287
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Check the following code to insert swf:
    <object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/
    cabs/flash/swflash.cab#version=7,0,0,0″ width=”400″ height=”300″
    id=”flashvideoplayer.swf” align=”middle”>
    <param name=”allowScriptAccess” value=”sameDomain”>
    <param name=”movie”
    value=”http://www.myhomepage.com/flashvideoplayer.swf“>
    <param name=”quality” value=”high”>
    <param name=”bgcolor” value=”#ffffff”>
    <embed src=”http://www.myhomepage.com/flashvideoplayer.swf” quality=”high” bgcolor=”#ffffff” width=”400″ height=”300″ name=”flashvideoplayer.swf” align=”middle” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer”>
    </object>
    HTML:
     
    jumpjump, Nov 4, 2009 IP
  10. patidarvijay

    patidarvijay Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    just use this

    <object width="535" height="225">
    <param name="movie" value="Support/images/ttNew1.swf">
    <embed src="Support/images/ttNew1.swf" width="535" height="225">
    </embed>
    </object>

    A broken icon will appear on the Web page if the user does not have the Flash plug-in installed
    and change the swf file path.
     
    patidarvijay, Jan 4, 2011 IP
  11. stephenz

    stephenz Peon

    Messages:
    175
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    stephenz, Jan 5, 2011 IP
  12. jatrasmara

    jatrasmara Peon

    Messages:
    416
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    i usually using dreamweaver to add a .swf to my site :)
     
    jatrasmara, Jan 5, 2011 IP
  13. fifalive

    fifalive Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    You can use some banner maker(like Photo Flash Maker, you can google it) to generate embed cod embed code for you. Using a program to handle embed code will save you lots of time and reduce the possibility of error.

    You can also upload your SWF to third party hosting then use the embed code to embed the slideshow.

    Here is a tutorial on www.photo-flash-maker.com/how-to-embed-flash-slideshow-to-website.html, hope it helps.:eek:
     
    fifalive, Jan 6, 2011 IP
  14. kooldesigning

    kooldesigning Greenhorn

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #14
    kooldesigning, Feb 8, 2011 IP
  15. nellee

    nellee Peon

    Messages:
    121
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    You may refer to this step by step guide, it will show you how to embed SWF file into an HTML page, and then you can enjoy it on your webpage.
    http://www.flash-video-soft.com/blog/?p=200
    Hope it helps. Contact me if you have any other question about Flash.
     
    nellee, Feb 10, 2011 IP
  16. moshecogan

    moshecogan Active Member

    Messages:
    265
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #16
    Dreamweaver!
     
    moshecogan, Feb 16, 2011 IP
  17. Voynex

    Voynex Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #17
    To make the things more simple I suggest to use Voynex Object Embedding, SWFObject or jQuery Media Plug-in library. It's pretty easy to use them and no need to remember all those tricky params. Just call a JavaScript function and job is done.
     
    Voynex, May 19, 2011 IP
  18. Gigusx

    Gigusx Active Member

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #18
    Nice job Voynex.

    First post - Mar 28th 2007
     
    Gigusx, May 19, 2011 IP