SWF file — FIX!">Flash Security Error #2028 — Local-with-filesystem SWF file — FIX!

Hi every­one,

I developed this web applic­a­tion for a cli­ent of mine. It was run­ning fine on a server but now they want an off­line for present­a­tion pur­poses.
So they asked me to do some changes (load local pic­tures etc…) and deploy an off­line version.

So while doing that I dis­covered the fol­low­ing error:

Flash Security Error

Flash Secur­ity Error — fpdownload.adobe.com

This error occurs when I tried to open the HTML file that embeds the SWF in my browser.

Doing what it says and chan­ging the global secur­ity set­tings didn’t help me. Once you click OK the browser opens and flash player dis­plays the fol­low­ing error:

SecurityError: Error #2028: Local-with-filesystem SWF file file:///C:/Users/Dan/Desktop/bin-release/MyFlashApplication.swf cannot access Internet URL http://fpdownload.adobe.com/pub/swz/flex/
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
at mx.core::CrossDomainRSLItem/load()
at mx.core::RSLListLoader/loadNext()
at mx.core::RSLListLoader/load()
at mx.preloaders::Preloader/initialize()
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()
at mx.managers::SystemManager/initHandler()

So from what I’ve learned the SWF file tries to load parts of the Flex Frame­work dynam­ic­ally from the Adobe server. Which in gen­eral is a good thing. But in this case it is not as we are try­ing to deploy a com­plete local ver­sion in case we can’t depend on a work­ing inter­net connection.

Solu­tion 1 — Set­ting com­piler arguments

The first solu­tion I tried is to set the fol­low­ing com­piler arguments


in the Flash Builder Com­piler Settings.

Flash Builder Compiler Arguments

Flash Builder Com­piler Argu­ments –use-network=false

For an older pro­ject of mine this was everything I needed to do. But with this pro­ject the same error still came up after open­ing the HTML file loc­ally in my browser.

Solu­tion 2 — Mer­ging the Frame­work into the code

To finally fix this issue I had to merge the Frame­work into my code so the Flash Player doesn’t try to load it at runtime. Remem­ber how I men­tioned earlier that’s what the Flash Player is try­ing to do. But since we can’t depend on a work­ing inter­net con­nec­tion we have to include all the neces­sary frame­work code into our pro­ject at com­pile time.

To accom­plish this you only need to do the fol­low­ing steps:
Go to your Pro­ject Prop­er­ties -> Flex Build Path -> Frame­work link­age: -> Merged into code


Flash Builder Build Path - Setting Framework Linkage to: Merged into Code

Flash Builder Build Path — Set­ting Frame­work Link­age to: Merged into Code

That should do the trick! Com­pile your applic­a­tion again and start it from any­where on your com­puter, send it to friends or cli­ents and will it run seam­lessly  on any computer.


I hope this helped any­one out there. I had to look for 30 min around vari­ous pages that came up on Google.
If it took you less time to find this site or if this helped you out please leave me  a comment.

Thanks for reading…


  1. Vita­lik
    September 19th, 2011 at 20:49 | #1

    Hi man=) It’s help me a lot because i was dis­ap­poin­ted when look at bin-debug folder com­pil­ing simple app in 4.0 sdks.
    A lot of new files — and i didn’t know from where they exist and for what .
    If says that you searched and found so quick res­ult for your own prob­lem.
    Can you give some ref­er­ence — for what is those files exist.

  2. September 19th, 2011 at 22:03 | #2

    Hi Vita­lik,

    I don’t quite under­stand what your ques­tion is. The “new” SDK just deploys a few files that haven’t been there before. It’s just the the frame­work the applic­a­tion needs in order to run prop­erly. In my post I am just describ­ing some ways on how to deploy these files. So in case you want to deploy a local ver­sion (that is not an AIR pro­ject) you might want to go for one of my sug­ges­ted options.

    Let me know what exactly you want to achieve :)



  3. October 3rd, 2011 at 02:43 | #3

    can i open swf file with flash pro?

    • October 10th, 2011 at 12:14 | #4

      Hi, I cre­ated all my files with Flex Builder 3 or Flash Builder 4. I wouldn’t know if it works with Flash Pro.
      Just go ahead and try but I can’t guar­an­tee any­thing. Cheers,

  4. February 29th, 2012 at 11:03 | #5

    I can just say exactly what a relief to dis­cover someone that actu­ally knows what theyre dis­cuss­ing on the web. You actu­ally under­stand how to bring a prob­lem to light mak­ing it import­ant. Lots more people should check this out and appre­ci­ate this side of the story. I cant believe youre not very pop­u­lar since you def­in­itely have the gift.

  5. March 11th, 2012 at 14:19 | #6

    Thanks mate! I’m glad I could help you out. Enjoy your coding…

  6. noo­grub
    July 24th, 2012 at 02:17 | #7

    Thanks for the pointer. I appre­ci­ate the help. Cheers from Indi­ana, USA.

  7. senior-but-flash-starter
    December 27th, 2012 at 15:44 | #8

    Yes very help­ful, thanks!

  8. Wayne
    February 7th, 2013 at 08:18 | #9

    Thanks! I just star­ted work­ing with Flash Builder, and had an issue deploy­ing an app that dis­plays FLVs. Appre­ci­ate the help.

  9. September 19th, 2014 at 21:27 | #10

    Very ener­getic post, I enjoyed that a lot. Will
    thhere bbe a part 2?

  1. No trackbacks yet.