Error #2140 Flash
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Flash CS4 AS3 Security Sandbox Violation up vote 1 down vote favorite I have build my entire website with flash and embedded several swf objects (slideshows) into it. everything always worked fine when I published it as swf movie. but now that I want to upload my website an error message occurs saying: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation: file:///mylayout.swf cannot load file:///slideshow_1.swf. Local-with-filesystem and local-with-networking SWF files cannot load each other. I know that it has something to do with the fact that one of the swf is local with filesystem and the other local with networking. but in my publish settings i told it to access local files only. but it didnt help. does anyone have an answer? sorry for being such a newbie in doing a flash website. but i dont really know what your are talking about. i am hosting my website at www.all-inkl.com. besides that i have not uploaded it yet. i am just testing it offline. and the code
1 of 1 [ 9 posts ] Previous topic | Next topic Help! moving projects breaks swf's Author Message ares623 Member Joined: Thu May 15, 2008 4:14 pmPosts: 52 Help! moving projects breaks swf's here's the scenario... i created an AS3 project. everything goes fine until.. I needed to zip the project folder and give it to someone else. I unzipped it on another location, and tried to run the main swf, and I get errors. i think maybe the paths of the project are messed up when I moved them...? how do http://stackoverflow.com/questions/2544568/flash-cs4-as3-security-sandbox-violation I get around this? here is an image of my project outline i hope it's showing. GREEN arrows: creates swf RED arrows: are referenced/loaded/used in the file (through Loader, URLRequest, URLLoader BLUE arrows: are imports here are the errors generated when opening Banner.swf Code:Error #2044: Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation: file:///C|/Documents%20and%20Settings/1/Desktop/Carousel/bin/Banner.swf cannot load file:///C|/Documents%20and%20Settings/1/Desktop/Carousel/bin/Carousel.swf. Local-with-filesystem and local-with-networking SWF files cannot load each http://www.flashdevelop.org/community/viewtopic.php?t=3086 other.when opening Carousel.swfCode:SecurityError: Error #2148: SWF file file:///C|/Documents%20and%20Settings/1/Desktop/Carousel/bin/Carousel.swf cannot access local resource file:///C|/Documents%20and%20Settings/1/Desktop/Carousel/lib/data.xml. Only local-with-filesystem and trusted local SWF files may access local resources. at flash.net::URLStream/load() at flash.net::URLLoader/load() at Main/init() at Main() I could play Banner.swf if I opened Banner.fla and pressed ctrl+enter. After which, opening Banner.swf alone gives me the same error.The person i am sending this to doesn't have FD or Flash CS3. please, i need to find a solution asap. Fri May 23, 2008 12:16 pm Philippe Admin Joined: Wed Aug 31, 2005 7:27 amPosts: 12164Location: London If you read carefully you'll see a "Security sandbox violation". This happens when a "non trusted" SWF tries to load a local file. By default FlashDevelop automatically trusts the file that you build, but you can do it manually: - open the Files panel, - navigate to the directory where the SWF is located, - right-click on the SWF and select: Add to Flash trusted paths, Note: you many need to close and restart all instances of your webbrowsers and file explorers. Another solution is to make a projector out of the main SWF: - open the SWF
No tags yet. haitam1 Novice BirdJoined: Nov '14Posts: 22 haitam1 Novice BirdJoined: Nov '14Posts: 22 So i set my project http://forum.starling-framework.org/topic/security-sandbox-violationerror-2044 with my release build on a usb. But when i test the game on a usb the game gives me a error maybe the file location has changed Please i need help because the deadline is tomorrow for school. (Error #2044: Niet-afgehandelde SecurityErrorEvent:. text=Error #2140: Security sandbox violation: file:///C|/Users/haitam/Desktop/ThemaGame/bin%2Ddebug/CitrusEditor.swf kan file:///C|/Users/haitam/Desktop/ThemaGame/level/level2.swf niet laden. SWF-Files error #2140 local-with-Filesysteem and Local-with-network could each other not load.) Posted 1 year ago # gsynuh Citrus JediJoined: Nov '12Posts: 2,605 gsynuh Citrus JediJoined: Nov '12Posts: 2,605 Hey haitam1, I believe that can be fixed by explicitly allowing flash to load stuff from that level directory you have, try going to this page : http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html You error #2140 flash can add locations too allow flash to access them (web or local) --- Well actually have a look at this article I just found , with additional things you could do (specially letting the compiler know what mode you want to be in) : http://www.wildbunny.co.uk/blog/2012/11/05/fixing-security-sandbox-violation-in-flash-as3/ --- you may need to do the same thing if you're going to put the files on another computer there, the best way is to set the .swf to access web only, and put your game and other .swfs on a web server if you have one. Posted 1 year ago # haitam1 Novice BirdJoined: Nov '14Posts: 22 haitam1 Novice BirdJoined: Nov '14Posts: 22 Hey Thomas, Thanks for your help it worked on my website but my school wants only one swf file with the game on it but I dont know how to export a whole flash builder project to one single swf file?? Posted 1 year ago # gsynuh Citrus JediJoined: Nov '12Posts: