www.webdeveloper.com
Results 1 to 4 of 4

Thread: Embedding swf file in a webpage - I've tried everything I can think of

  1. #1
    Join Date
    Oct 2005
    Posts
    24

    Embedding swf file in a webpage - I've tried everything I can think of

    I created a photo album with a program and created a display with thumbnails on the side and a slideshow of the full size pictures. I copied and pasted the code from the video html page, but it doesn't work. Can someone help me out?

    This is the code from the video html page that goes in the <head>:

    <style type="text/css">
    <!--
    * {margin:0 auto; padding:0 ;}
    #top { height:20px; background-color:#1A1A1A; border-bottom:1px solid #5A5A5A;}
    #title{ font-size:22px; color:#CCCCCC;}
    a {
    font-family:Verdana, Arial, Helvetica, sans-serif;
    text-decoration: none;
    }
    a:hover{
    text-decoration: underline;
    }
    -->
    </style>

    And this is the object code that is placed on the page where I want the video to play:

    <!-- saved from url=(0013)about:internet -->
    <div id="top">
    </div>
    <table align="center" border="0" cellpadding=0 cellspacing=0>
    <tr>
    <td align="center"><span id="title">MOONLIGHT (DEMO)</span></td>
    </tr>
    <tr><td align="center"></td></tr>
    <tr>
    <td align="center">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="660" height="450" id="tech" align="middle">
    <param name="movie" value="DEMO.swf?xml_path=slides.xml" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="allowScriptAccess" value="always" />
    <param name="_flashcreator" value="http://www.photo-flash-maker.com" />
    <embed src="DEMO.swf?xml_path=slides.xml" width="660" height="450" quality="high" wmode="transparent" allowScriptAccess="always" name="tech" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </td>
    </tr>

    </table>

    Here's the URL of the sad and lonely page:

    http://www.belesprit.net/v2/demo/DEMOTEST.aspx (it is a css page in case that makes a difference)

    The website is created in Dreamweaver, so I first tried using Dreamweaver command (INSERT/MEDIA) to insert the Flash, but didn't work. I have also looked online for sample embed coding, double checked code and followed numerous different instructions to embed swf. Everything gives me a completely blank page or "LOAD FAIL."

    Help!

  2. #2
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    First off, I'll admit that I know nothing about how .asp pages work, but on the other hand, I know a heck of a lot about how the Flash part works, so maybe I can offer a few suggestions.
    Typically when diagonsing Flash problems, it's a good idea to start by checking to see if each of the files needed are available (the .swf, the .xml, etc). Applying that process to your web page seems to bring up a couple of problems. First,
    http://www.belesprit.net/v2/demo/DEMO.swf
    should allow direct download of the .swf and
    http://www.belesprit.net/v2/demo/slides.xml
    should allow direct download of the .xml file. But both addresses come up with file not found. So it appears that either the address is wrong, the file is some other folder, or there is some other problem with the path to those files.
    So for starters, you should double check the upload process, make sure all the files have been correctly uploaded and that you can directly download any and all files. Then you can correctly code the path.
    Code:
    <param name="movie" value="DEMO.swf?xml_path=slides.xml" />
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

  3. #3
    Join Date
    Oct 2005
    Posts
    24
    If I could impose once more - I'm a complete idiot when it comes to this. I uploaded the entire folder created for the video, with the slides, the swf, html and slide.xml files plus all the other stuff - this is the folder of stuff the video program creates. Still doesn't work. I don't know what I am screwing up. Any ideas? This is driving me nuts.

  4. #4
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    Well we're still working with a lot of variables here:
    I created a photo album with a program
    Without seeing the software/code used to do this, there's really no telling how the final output is supposed to work. Was this Flash or a Flash knock off? Have you tested the final .swf on your local machine and everything works?
    Then:
    I copied and pasted the code from the video html page
    just because some code may work for a video player file, does not necessarily mean that the exact same code will work for a slide show, (though it might).
    Can you go to the folder which holds your .swf, on your local machine, click on DEMO.swf (all those caps make me nervous), and does the slide show display correctly?
    That has to work before you start any coding on a Web page.
    Best wishes,
    EfV

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles