381 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 7-8 years
  • Netherlands
  • Referred between 50 and 99 users
  • Sold between 1 000 and 5 000 dollars
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
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 and 1 000 dollars
  • United States
theflyingtinman says

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

381 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 7-8 years
  • Netherlands
  • Referred between 50 and 99 users
  • Sold between 1 000 and 5 000 dollars
Yvo says

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

2309 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 and 1 000 dollars
  • United States
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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 7-8 years
  • Netherlands
  • Referred between 50 and 99 users
  • Sold between 1 000 and 5 000 dollars
Yvo says

Thanks mate,

I will experiment some more with it.

1234 posts
  • Bought between 50 and 99 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
  • United States
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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 7-8 years
  • Netherlands
  • Referred between 50 and 99 users
  • Sold between 1 000 and 5 000 dollars
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!

by
by
by
by
by
by