Results 1 to 7 of 7

Thread: Problem embedding .swf

  1. #1
    Join Date
    Apr 2010
    Location
    Canada, mainly in front of the computer cursing at this random Jargon @#$%!!!!!
    Posts
    15
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Problem embedding .swf

    Hi everyone,
    if anyone has a some time to help me with this I would really appreciate it.

    I'm not the greatest at coding but I wanted to give myself a shot at making my own website. So far so good (in my opinion). Here is the problem that I am having.
    For the new year I have re-done my website and now I can no longer seem to get my flash banners (.swf) to appear on my website. i even tried using the previous code and manually re-direct the source to the files new location. No luck. however when I open it to preview on my own machine it seems to work.
    Here is the current code

    Code:
    	
      <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','468','height','60','title','Highlight','src','../Gallery/DontLook/flash/www.sammacha.com_simple_highlight','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Gallery/DontLook/flash/www.sammacha.com_simple_highlight' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="468" height="60" title="Highlight">
            <param name="movie" value="../Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" />
            <param name="quality" value="high" />
            <embed src="../Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"></embed>
          </object></noscript>
    if someone could tell me where I've made a mistake I would appreciate it
    Also if needed : a link to the actual page on the website
    http://www.sammacha.com/Home/Support.html
    and a link to the files location
    http://www.sammacha.com/Gallery/DontLook/flash/

    ~Sammacha
    Last edited by jscheuer1; 01-19-2012 at 04:28 AM. Reason: Format

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,094
    Thanks
    1
    Thanked 205 Times in 201 Posts

    Default

    Hi there Sammacha,

    personally, I wouldn't use javascript for your .swf banners.

    This coding works perfectly for me...
    Code:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <base href="http://www.sammacha.com/" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="english" /> 
    <meta http-equiv="Content-Style-Type" content="text/css" />
    
    <title></title>
    
    <style type="text/css">
    *{
        margin:0; 
        padding:0;
     }
    body{
       font:76% verdana,tahoma,Arial,sans-serif;
       line-height:1.4em;
       text-align:center;
       color:#666;
       background:#000;
     }
    #content{
        float:left;
        width:auto
        font-size:0.9em;
        padding:20px 0 0 20px;
     }
    </style>
    
    </head>
    <body>
    
    <div id="content">
    
    <p>Flash Banners</p>
    <p>
    <object type="application/x-shockwave-flash" data="Gallery/DontLook/flash/www.sammacha.com_fade_banner.swf" width="468" height="68">
     <param name="movie" value="Gallery/DontLook/flash/www.sammacha.com_fade_banner.swf" />
     <param name="quality" value="high" />
     <param name="bgcolor" value="#000000" />
    </object>
    </p><p>
    <object type="application/x-shockwave-flash" data="Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" width="468" height="68">
     <param name="movie" value="Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" />
     <param name="quality" value="high" />
     <param name="bgcolor" value="#000000" />
    </object>
    </p>
    
    </div>
    
    </body>
    </html>
    
    coothead

  3. The Following User Says Thank You to coothead For This Useful Post:

    Sammacha (01-05-2012)

  4. #3
    Join Date
    Apr 2010
    Location
    Canada, mainly in front of the computer cursing at this random Jargon @#$%!!!!!
    Posts
    15
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much coothead
    That code works fine for me if i remove all the other content on my website but it wont work with it....
    Im so confused now lol

  5. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,094
    Thanks
    1
    Thanked 205 Times in 201 Posts

    Default

    Hi there Sammacha,

    sorry about that.

    After looking at your page code, I would suggest that you put ../ before Gallery/DontLook/flash/...
    Code:
    
    <object type="application/x-shockwave-flash" data="../Gallery/DontLook/flash/www.sammacha.com_fade_banner.swf" width="468" height="68">
     <param name="movie" value="../Gallery/DontLook/flash/www.sammacha.com_fade_banner.swf" />
     <param name="quality" value="high" />
     <param name="bgcolor" value="#000000" />
    </object>
    </p><p>
    <object type="application/x-shockwave-flash" data="../Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" width="468" height="68">
     <param name="movie" value="../Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" />
     <param name="quality" value="high" />
     <param name="bgcolor" value="#000000" />
    </object>
    
    ...to effect a cure.

    coothead

  6. The Following User Says Thank You to coothead For This Useful Post:

    Sammacha (01-05-2012)

  7. #5
    Join Date
    Apr 2010
    Location
    Canada, mainly in front of the computer cursing at this random Jargon @#$%!!!!!
    Posts
    15
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Ah! ... Lol, do I feel silly now :P

    Thanks so much for the help, and for the better way to insert the flash as an object rather then using a javascript
    Very helpful

  8. #6
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,094
    Thanks
    1
    Thanked 205 Times in 201 Posts

    Default

    No problem, you're very welcome.

  9. The Following User Says Thank You to coothead For This Useful Post:

    Sammacha (01-06-2012)

  10. #7
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Another option if you only plan to play this from you pc would be to enable Local Access Mode. You will find this in Project Properties>Flash. With this checked
    it will allow the SWF to load local files but it will disable webserver functionality.

Bookmarks

Posting Permissions

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