381 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
Yvo says

Hope someone can give me an answer on this. One of my files is a straightforward accordion that loads in either images or swfs on the tabs. Works like a charm. Now someone bought it and ran into a problem, that I hadn’t thought about. The swf he loaded on one of the tabs of the accordion loaded in images of itself via another XML file. So let’s say XML upon XML . His swf that loads in images via XML works perfectly on its own, but when I load in that swf via XML into my accordion, his swf does not display the images loaded in anymore. I hope I’m still clear here.

Does anyone know if it is possible to have such a construction?

btw I made a simple swf of my own that loads in one png file. And tried to load in that swf into my accordion via XML and that didn’t work either. I’m guessing it’s just not possible. Can anyone verify this?

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

Is the other swf (and its xml file) in a different folder than the accordion swf?

381 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
Yvo says

Tried in the same and in another, with the right paths in the XML files of course

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
Tried in the same and in another, with the right paths in the XML files of course

The reason I asked is that the externally loaded swf will use the folder in which the main swf resides as its start folder for any relative paths it references, not the folder in which it resides itself (as it would when run as a standalone) This applies to both the path it uses to find the XML file and the path it uses for the image urls it finds in the xml file.

But it should be simple enough to find where it is failing by running from Flash and putting trace statements in at the place where the URLs are used to examine what they contain. And if you need to test outside of Flash or on the server just put temporary dynamic textfields on the stage which you can update with the path names as they are used.

What you want to do is certainly possible, and is done done in many templates.

381 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
Yvo says

Thanks mate,

I will experiment some more with it.

1234 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 50+ items on Envato Market
+5 more
MBMedia says

it is possible to do, people do it with my templates plenty, like tinman said, the loaded swf will load files from the swf that loaded it, so watch the path.

Other than that make sure the loaded swf doesn’t have any errors throwing that are stopping the swf from working when loaded externally (such as using stage before the loaded swf is added to the parent swf’s stage, that’s a common one, see this)

381 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
Yvo says

Thanks very very much MBM . Due to your comment I found the problem in the clients fla. Thanks for saving me a load of time!

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