Skip to main content
April 7, 2009
Question

How do I dynamically load a SWF that was compiled from an Fla with a linked external class file

  • April 7, 2009
  • 1 reply
  • 395 views

I am dynamically loading external SWFs in a Main Fla in response to clicks on a menu.

The loading code is standard and works fine for all of the SWFs except one. When I try to load it I get the following error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

I am certain that the URL to the problem SWF is correct. The SWF itself doesn't load any other SWFs or images.

The problem SWF is linked to an external class file and compiled with it.
i.e. in the properties panel of the main timeline of the problem SWF's Fla I have entered the path to the external class.

1. there is no problem compiling this SWF with the class (it works fine by itself)
2. if I remove the external class from the properties panel and don't use it the resulting SWF imports without a problem into the Main Fla mentioned before

So the problem seems to be the fact that the external class is linked in the properties panel. Is this a path problem?

Would appreciate any suggestions,

Thanks!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 7, 2009

despite what you say, that loaded swf most likely is loading something and that's the cause of the error.

you could test that by putting the main swf's embedding html file in the same directory with problematic swf.  if the problem is as explained above, you'll have no problem when the main html is in the same directory with the loaded swf.

April 7, 2009

Thanks for the quick reply!

Turned out to be a problem in another SWF and a SEPARATE problem in the "problem" SWF that made it look like a loading problem.

kglad
Community Expert
Community Expert
April 7, 2009

you're welcome.