View Full Version : swf/xml not loading properly once embeded in html files
pendejo
10-14-2008, 03:09 AM
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
punstc
10-14-2008, 07:03 PM
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.
pendejo
10-15-2008, 06:17 AM
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?
Medyman
10-15-2008, 01:56 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.