All relative URLs are relative to the first SWF loaded, so loading a SWF
that loads other files can cause problems. You will have to adjust the code
to use LoaderUtil.createAbsoluteURL based on the URL of the loaded SWF.
Thanks for your answer, but I am not sure to understand it.
What code I have to adjust :
- the code of the swf I load ? It's a problem because I don't have access to the source code : my customer provides me only a swf file (with the xml file), and I have a lot of others swf files that work the same way, I can't ask him to modify everything.
- the code of my application ? I don't really see how to use LoaderUtil.createAbsoluteURL, because when I debug, I see in the SWFLoader code that when this method is called, the returned url is good !
Thanks for your help.
You have to adjust the code of the SWF you are loading. If the SWF is not
designed properly it can't be loaded into other SWFs.
The code of the loaded swf has been modified : when it reads an xml file, it constructs now the local file url based on this.loaderInfo.url. So it obtains an absolut URL and it works fine.
Thanks a lot !