1080 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Madness says

i never had this kind of problems before and i really dont know why its happening!

ok i have a main site lits call it “site” which loads a gallery “gallery” and the gallery loads a xml “xml”

i have them all in a folder ” main “

when i have the site and the gallery and the gallery,s xml in that ” main ” folder everything works just fine!

when i create a folder for the gallery inside that ” main ” folder and put the gallery , the gallery,s xml and that folder … the gallery works fine alone …

how ever when i load it in the main ” site ” it wont load! i get and error saying that is failed to load the gallery xml ! WTF ?!

the gallery is suppose to load the xml not the main site …

see what is happening ?

the gallery works fine alone , when i load it to the site it wont work!

2485 posts Premium Scripts, Plugins and Themes
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
LucidStudios says

when your main.swf file loads gallery.swf file from gallery folder then gallery.swf file points to the same path as main.swf.

So in gallery.swf file you load gallery.xml using:
xmlObject.load("gallery/gallery.xml")
1080 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Madness says

THANKS ! :)

it works now , one thing though , the gallery doesnt work alone now … it only works with the site , which is what i wanted!

2309 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
theflyingtinman says
THANKS ! :)

it works now , one thing though , the gallery doesnt work alone now … it only works with the site , which is what i wanted!

If you want to be able to test the gallery as a standalone in its own folder you could make a variable in gallery.swf to hold the folder to the XML file which you add on to the front of the XML filename. In gallery.swf it would be initialized to ”” (no subfolder) but when you load gallery.swf in your main site you could overwrite the folder variable with “gallery\” from the main site before it loads the XML file.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by