www.webdeveloper.com
Results 1 to 3 of 3

Thread: failure embedding flash file

  1. #1
    Join Date
    Jul 2007
    Posts
    198

    failure embedding flash file

    I am trying to embed some flash into my site using this code,

    <object width="526" height="216">
    <param name="movie" value="Gallery/Slideshow.swf">
    <embed src="Gallery/Slideshow.swf" width="526" height="216">
    </embed>
    </object>

    The directory is correct because I am embedding another flash file from the same directory and it works. However this specific file is not correctly loading. I double checked that this is the correct file name. The difference in the flash files is that Slideshow.swf uses a .xml file. When I view the actual .swf file, everything works perfect, however when embedded it does not correctly load. I made sure the images that are in the .xml file are absolute paths so regardless of where the flash file is embedded it should correctly load the images. Any suggestions?

  2. #2
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    OK... well if the path to the .swf is correct...and the spelling is correct (caps/no caps??)... and the image urls are absolute.... that still leaves the possibility that the path to the .xml file in the
    Code:
    yourfileXML.load("yourimages.xml");
    could be incorrect.
    If the path to the .swf file is correct, it will load even without the correct path to the .xml file. Does the .swf file load? If it does not, then there is a pathing or file name problem with the .swf.
    If the .swf file loads but it does not load the .xml, then there is a problem with the path to the .xml file. In the ..load("yourimages.xml") example above, the .xml is in the same directory as the .swf and the html page that holds the .swf. If your placement of the .swf on the html page puts the either the .swf or the .xml in a different relationship (up/down one or more layers of directories), that must be reflected in the
    ..load("images/yourimages.xml").
    In relation to the html page, the .swf and the .xml can be in whatever directories you like but that new relationship, after the .swf is placed on the page (which may not be the same relationship as when it was created), must be reflected in the pathing of each.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

  3. #3
    Join Date
    Jul 2007
    Posts
    198
    Eye for video,

    I was not aware that the .xml file had to be relative to the .html file that it was included in, I only thought that the .xml file had to be relative to the .swf file. My .html file was a directory higher and it was only being loaded as ("gallery.xml"), so adding the proper directory fixed it. I appreciate your help.

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