swfobject problem

Discussion in 'JavaScript' started by bumbar, Apr 5, 2011.

  1. #1
    Hallo!

    I have a problem with embedding. swf file.
    I use SWFObject v2.2
    Here my directory structure:

    swfobject.js
    index.html
    flashPuzzle.swf
    settings.xml
    images - folder

    
    <script type="text/javascript" src="swfobject.js"></script> 
    
    <div id="home_gallery_holder"></div>
    <script type="text/javascript">
    swfobject.embedSWF("flashPuzzle.swf", "home_gallery_holder", "600", "500", "9.0.0", "expressInstall.swf");
    </script>
    
    PHP:
    And flash not working properly.

    if locate browser to http://localhost/flashPuzzle.swf" script working ...

    I think not loaded correctly images from settings.xml
    Does anyone have such a problem?

    Thanks!
     
    Last edited: Apr 5, 2011
    bumbar, Apr 5, 2011 IP
  2. multi-task

    multi-task Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    So it works locally but not when accessed elsewhere?
    Does the swf load but not the images? If so check your XML file path within the swf creation.
     
    multi-task, Apr 7, 2011 IP
  3. Voynex

    Voynex Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Verify the paths to the SWF file. Also check if the tag with the id="home_gallery_holder" is present in the HTML document which will host the video.
     
    Voynex, May 19, 2011 IP