Search code examples
javascriptxmlflashxhtmlswfobject

How to define absolute path of xml, images folder and main swf path in this swf object code?


<script type="text/javascript">
            var flashvars = {};
            var params = {};
            var attributes = {};
            swfobject.embedSWF("loader.swf", "flash-banner", "920", "320", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
        </script>

After loading loader.swf I'm getting this error Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

This is folder structure.

loader.swf
main.swf
main.xml
images
  1.jpg
  2.jpg
  3.jpg

Solution

  • This is a Flash error. It happens when a Loader instance fails to find the file it was attempting to load.

    One possible cause is that the other file(s) needed are not in the same folder as the main file (loader.swf).