#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    63
    Rep Power
    0

    Question Slideshow - browser display problem


    Hi,

    I have a slideshow made with actionscript and XML.
    I works fine with:
    Internet Explorer - offline
    Internet Explorer - online
    Firefox - offline.

    However, it doesn't work with Firefox - ONline !

    So I can't understand what the problem is, any hints are welcome.

    Thanks.
  2. #2
  3. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3165
    My hunch would be that you are trying to do something with some externally loaded data before it has finished loading but it is quite hard to say for sure since you have not said what the problem is. Does the main viewer load but none of the slides, do some of the slides load but not others, are the slides internal or external files, are you using an external XML file or a database/server side language for loading the slide filenames?
    Quis custodiet ipsos custodes?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    63
    Rep Power
    0
    No, I use a simple XML file not a data base.
    I wonder why it's only Firefox online that has problems...
    How could I describe better the problem?


    Originally Posted by Tann San
    My hunch would be that you are trying to do something with some externally loaded data before it has finished loading but it is quite hard to say for sure since you have not said what the problem is. Does the main viewer load but none of the slides, do some of the slides load but not others, are the slides internal or external files, are you using an external XML file or a database/server side language for loading the slide filenames?
  6. #4
  7. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3165
    You can say what the problem is to start with:
    • Does the main viewer load but none of the slides do
    • Do some of the slides load but not others

    Just saying "it doesn't work with Firefox online" doesn't really tell me alot. A link would be useful so I can see for myself. Send me a private message with the link if you don't want it to be public yet.
    Quis custodiet ipsos custodes?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    63
    Rep Power
    0
    I really don't know too much about action script.

    If you have both IE and Firefox installed, please check the website:
    www.romaniatabi.jp
    first in IE (it works) and then in Firefox.

    In Firefox the slideshow window stays white. Does that mean that the main viewer is not loaded or that the slides are not loaded?
  10. #6
  11. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3165
    It appears to be the path to the XML file that is causing the problem. I used fiddler which lets you see what files are being loaded on a page. Very handy for diagnosing file problems on remote servers.

    In IE I can see it successfully loads /flash/images.xml but in FF it fails to load /images.xml. My guess is that inside Flash where you are loading the XML file you have it saying just "images.xml". You need to change that to the absolute path of "/flash/images.xml". That means it won't work locally anymore but it should work online. Also, you'll have to do something similar for the images themselves if you don't already.

    The Flash plugins for IE and FF do have small differences which can lead to situations like this.
    Quis custodiet ipsos custodes?
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    63
    Rep Power
    0
    Thanks, I checked and:

    Both the images.xml file and the slideshow.swf file are in the the 'flash' folder.
    The 'images' folder is also inside the 'flash' folder.

    In swf file, the xml file is called with:
    images_xml.load("images.xml");

    In xml file, images are called like this:
    <image path="images/01.jpg" />

    In the index file, the embedding code is:

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="330" align="middle">
    <param name="base" value=".">
    <param name="wmode" value="transparent">
    <param name="movie" value="./flash/slideshow.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">
    <param name="allowScriptAccess" value="sameDomain">
    <embed src="./flash/slideshow.swf" quality="high" wmode="transparent" bgcolor="#000000" width="500" height="330" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
    </embed>
    </object>



    The file works properly if played directly:
    http://www.romaniatabi.jp/flash/slideshow.swf
    Last edited by ranger; July 28th, 2012 at 06:14 AM.
  14. #8
  15. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3165
    As I suggested in my previous post change:

    images_xml.load("images.xml");

    to:

    images_xml.load("/flash/images.xml");

    Then in the XML document change the paths from:

    <image path="images/01.jpg" />

    To:

    <image path="/images/01.jpg" />

    The problem is that the two browser Flash plugins are seeing the paths differently, IE is assuming they are absolute paths whilst FF is thinking they are relative. Doing the changes above should sort out your problems although I as I said before, it means you won't be able to test it locally anymore. You could put some extra code in to use different paths if it is tested locally but only it should work fine in all browsers as long as you stick with absolute paths.
    Quis custodiet ipsos custodes?
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    63
    Rep Power
    0
    Thanks, what I did is this:
    I moved both the swf and xml files from the flash folder to the root (where index.html is) and changed paths.

    Now it seems to work both IE and FF, both online and offline...

    Don't know why changing directory solved the problem, though...
  18. #10
  19. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3165
    It's the same solution but from another angle, instead of changing the XML to match the actual filepaths you changed the filepaths to match the XML. Eitherway, glad it got sorted (^_^)v
    Quis custodiet ipsos custodes?

IMN logo majestic logo threadwatch logo seochat tools logo