Kishor Kumar
Kishor Kumar

Reputation: 543

Sandbox violation while accessing image files in Flex 4

I'm working on an image gallery application. Very frequently I'm getting Sandbox violation Error like Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.. Some times its raising by cleaning the project. Every time I'm using my application's backup and updating and then the error is raising. Though I'm accessing local image files, getting error. I'm using try-catch to catch the location but no use. How to get rid of this problem. Any help is appreciated.

Upvotes: 0

Views: 442

Answers (2)

Constantiner
Constantiner

Reputation: 14221

About loading local images. You should check and fix Flash Player trust file for your SWF as described here. Flash Builder done it automatically but who knows…

About problem with loading images in web it can be problem related to loading images from other domain which hasn't proper crossdomain.xml file. If so you should use some kind of proxy on your server.

If you're loading files from your own domain maybe this deployment checklist can help you. Also you can use some debugging proxy like Charles to see the real queries and responses.

Upvotes: 1

Exhausted
Exhausted

Reputation: 1885

If u Clean the project It Will remove all your assets files in the bin-debug folder and it will be recreated during the Build.Some times the build wont creates the file properly i think that time you are getting the error.

At most avoid cleaning.It may also happens by the out dated flash player version.

It may also happens by the following ways,

  • incorrect path to the upload file script - check relative and absolute paths
  • a incorrect location for the files to be stored on the server specified inside server-side upload script - check path is correct and permissions are correct
  • file is too large so server rejects it - check max file size
  • there is no space on the server to save the file - check server hard drive space
  • your actionscript handler is going out of scope because it's declared locally, etc - create a strong event listener or declare the file reference on the class

Check one of the option and Comment is must.

Upvotes: 2

Related Questions