Error 2148 As3
Contents |
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
Actionscript Error 2148
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question global security settings panel 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 Error #2148: SWF file Cannot acces local resources up vote 1 down vote favorite I'm trying to load a local video to display it and I'm having this error ( Error #2148) at runtime, I have read in many places what this problem is, about flash security and all that stuff but there's no solution anywhere and some people say that it can't be done. My swf works fine when loading from internet, I have my cross-domain on my server but is completely necessary for me to create a standalone version which can run without internet connection and load the videos from file system. May be with different compiling options? I'm using Flash Builder 4.6 Any idea how could I achive a local resource loading? P.D. I know that the trusted folder can resolve the problem but that implies a configuration change in every computer it runs and I need it to be portable like in a USB to run on any computer that has Flash Player. actionscript-3 resources share|improve this question asked Nov 27 '12 at 17:31 Mark E 1,2291024 1 Have you tried the compilation by -use-network=false parameter? –Engineer Nov 27 '12 at 17:36 brettwidmann.com/2010/03/how-to-remedy-flex-error-2148 –Ziul Nov 27 '12 at 18:06 1 I used '-use-network=false' which is what the article said to, but I got an other error with that 'SecurityError: Error #2028: Local-with-filesystem SWF file file:///C:/Users/Desarrollo/Desktop/bin-release/imVideo360.swf cannot access Internet URL fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/…; –Mark E Nov 28 '12 at 15:41 I solved the las problem (ERROR 2028) by setting the flex libraries merged into code instead of RSL like. In project>properties>Build Path>Framework linkage>Merged into code. –Mark E Nov 28 '12 at 15:59 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you
Issue Solution Applies to : Flash Player Issue When running a Flash Builder project, the Flash Player throws an exception similar to one of the following error messages: *** Security Sandbox Violation *** Connection to file:///swf_file_A.swf halted - not permitted from file:///swf_file_B.swf SecurityError: Error #2148: SWF file file:///swf_file_B.swf cannot access local resource file:///swf_file_A.swf. Only local-with-filesystem and trusted local SWF files may access local resources. Flash Player Warning -------------------- http://stackoverflow.com/questions/13589795/error-2148-swf-file-cannot-acces-local-resources Note: If the Flash player displays a "SecurityError" message or blank window when you run your program, you may need to completely exit your browser and try again. The above message may appear on a Windows client while on a Mac client, the message suggests exiting "all browsers" instead of "your browser." The issue https://helpx.adobe.com/flash-player/kb/flash-builder-flash-player-throws.html is that the first time the Flash player loads into any browser window, it reads the "FlashPlayerTrust" directory to see which local directories may contain trusted SWF files, however, the player will only read this file once. For more information on this andother Flash player security featuresplease see http://www.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/flash_player_10_security.pdf. Each time you create or import a Flash Builder project whose bin-debug directory is outside of the normal Flash Builder workspace location, Flash Builder adds that bin-debug directory to the list of trusted directories; but if the browser is already running and the Flash player has already read the FlashPlayerTrust information, then your new program won't be trusted, and you will see one of the above error messages. Solution The workaround for this on a Windows client is to exit the browser running a SWF file before starting a new debugging session. On a Mac client, you will have to exit all running browsers (Safari, Firefox, and so on) because they share a s
by Benoît Latest reply from henke37 Tags: No tags yet. Benoît Competent BirdJoined: Sep http://forum.starling-framework.org/topic/securityerror-error-2148-only-local-with-filesystem-and-trusted-local-swf '12Posts: 76 Benoît Competent BirdJoined: Sep '12Posts: 76 Hello, I'm using DragonBones 2.4.1 When I start my swf with Flash Player standalone 12 I http://www.flashdevelop.org/community/viewtopic.php?t=3086 got this error: SecurityError: Error #2148: SWF file file:///C|/Users/bert/Dropbox/bin%20%281%29/ZombieDoorsWeb.swf cannot access local resource file:///C|/Users/bert/Dropbox/bin%20%281%29/ZombieDoorsWeb.swf/[[DYNAMIC]]/2. Only local-with-filesystem and trusted local SWF files may access local error 2148 resources. at flash.display::LoaderInfo/get content() at dragonBones.factorys::BaseFactory/loaderCompleteHandler()[/Users/Benoit/Dropbox/ZombieDoors/lib/Citrus-Engine/srclib/dragonBones/factorys/BaseFactory.as:479] Any help? Thanks. Posted 2 years ago # Benoît Competent BirdJoined: Sep '12Posts: 76 Benoît Competent BirdJoined: Sep '12Posts: 76 Fixed: Go to your Settings Panel (Windows or OSX) And open the Flash settings. Then allow your swf. http://docs.fusioncharts.com/widgets/Tools/FlashPlayerSecuritySetup/HowToSetup.html Posted 2 years error 2148 as3 ago # henke37 Wise OwlJoined: Jun '13Posts: 944 henke37 Wise OwlJoined: Jun '13Posts: 944 Or, just fix the publish settings to set the correct flag. Or load the file over http and make the entire issue a moot issue. Posted 2 years ago # Benoît Competent BirdJoined: Sep '12Posts: 76 Benoît Competent BirdJoined: Sep '12Posts: 76 What is the correct flag? Or, just fix the publish settings to set the correct flag. Posted 2 years ago # henke37 Wise OwlJoined: Jun '13Posts: 944 henke37 Wise OwlJoined: Jun '13Posts: 944 Well, it depends. Do you need networking or do you need filesystem access? Most people want networking. You can't have both, and that's the point. Or as I mentioned, just serve the file over http and forget about the issue. Posted 2 years ago # RSS feed for this topic Reply You must
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 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 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