Results 1 to 4 of 4

Thread: swf/xml not loading properly once embeded in html files

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default swf/xml not loading properly once embeded in html files

    First off i hope i m at the right place...didn't find the direct xml forum.

    ok twice now i tried to use swf files with xml and they both work fine in the flash player but once i insert the swf file in the htm file it wont work.

    the first time i just gave up but now that the same problem occur againin the same fashion i just though i must have done sth wrong.

    if anybody could help me that would be really nice, i don't know much about xml , just playing arounds with templates.

    http://theforeigncompany.com/zuploadable/flash.zip
    http://theforeigncompany.com/zuploadable/display.zip

  2. #2
    Join Date
    Aug 2007
    Location
    Harrisburg, PA
    Posts
    131
    Thanks
    6
    Thanked 9 Times in 9 Posts

    Default

    make sure once uploaded to your server that the xml file is in the proper location. It looks for the file from the location of your swf file.

    for example if your swf file is in the main diretory and in the flash file its being referenced by "xml/example.xml"
    its looking for the xml folder and then the example.xml


    check your paths and make sure that the are correct first.
    Let us know how that goes.

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok got it, man i hate how sometimes you just need someone to tell you sth you know to trigger an unexpected answer!!!

    ok if that can help as i am sure you guys keep repeating to check the path over and over again to all morons who ask and easy question like mine!!

    I had the right path from the start but apparently the SWF+XML must be in the same directory as the htm page?!?!

    i had the htm page pointed at a folder with my swf+xml+images and that wasn't working.....

    now that i moved the SWF+XML next to the htm page (meaning same directory) everything looks fine.

    thanks guys.


    Oh P.S.

    Could anyone explain to me why the xml+swf don't work when in different directory (it works but i would like to know what makes the html being a problem) i always thought that swf was doing it's job independently of the html code?

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Code:
    Could anyone explain to me why the xml+swf don't work when in different directory (it works but i would like to know what makes the html being a problem) i always thought that swf was doing it's job independently of the html code?
    It would work as long as the paths are referenced correctly. Anything referenced within the SWF file should have file paths relative to that file. Anything referenced within your HTML page, should be referenced relatively to the HTML page. The easy way around this is to always use absolute paths.

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
  •