SWF file compiled using Flash builder 4.6 (using Flex SDK 4.1) is running properly from Flash Builder using the 'Run' option.
But, when I try to run / execute the same swf file outside Flash Builder (copying it to Desktop), it is throwing error saying the swf file cannot access the framework.swf file say framework_4.6.swf file.
Error #2032: Stream Error. URL: file:///C:/Users/sanmadha/Desktop/Flex files/framework_18.104.22.16876.swf
If I put all the dependencies (here framework_22.214.171.12476.swf ) of my swf file in a same folder and try to execute it, it is working fine.
But I can run some other swf files (dowloaded from websites) independently without any other framework.swf files in any browser without any errors.
Could anyone please explain what might be the issue ? Why I cannot run my SWF file indepently which is compiled using Flash Builder outside Flash Builder ?
Flash Builder can export in a number of ways, one of them separates code from the custom, changing code that you build from the static code that Adobe releases from time to time. The idea is that multiple SWF can share the static, adobe code without needing to download the same old byte-code again and again and again as the shared code can be safely cached locally - only the first Flex SWF needs to download it and every subsequent SWF can save itself 1MB or so of download before display.
You can disable RSLs when you compile your application by setting the static-link-runtime-shared-libraries compiler option to true.
In general, disabling RSLs is useful only when compiling style SWF files, resource bundles, or other non-application assets.