Error #2148 Flash Builder
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 -------------------- 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 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 single in-memory instance of the Flash player. Twitter™ and Facebook posts are not covered under the terms of Creative Commons. Legal Notices | Online Privacy Policy Flash Player < See all apps Learn & Support Ask the
Adobe's Flash or Flex error SecurityError: Error #2148: SWF file? The solution is…. This a dumb out of the box assumption from Adobe's Flash or Flex Builder. You get this when you run your source: ActionScript Error #2148: SecurityError: Error #2148: SWF file file:///C:/Documents and Settings/UserProfile/Desktop/flexstore/bin-release/flexstore.swf cannot access local resource myFile.swf. Only local-with-filesystem and trusted local SWF files may access local resources. Got to love that one Adobe. Anyhow here is a solution that seems to work: I just had to figure https://helpx.adobe.com/flash-player/kb/flash-builder-flash-player-throws.html out where to add the extra property ‘-use-network=false’. In Flex 3, it’s in Project/Properties/Flex Compiler/Additional Compiler argument. After the adding, the text field contains : -locale en_US -use-network=false No need to separate the extra properties with a semicolon as I did at first. NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry http://quantlabs.net/blog/2010/10/love-adobes-flash-or-flex-error-securityerror-error-2148-swf-file-the-solution-is/ as I don't post stupid cat videos or what I eat!Share this:EmailLinkedInFacebookRedditPrintTwitterGoogle Misc Adobe, error, file, Flash, Flex, Security, solution, SWF permalink About caustic Hi i there My name is Bryan Downing. I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties: C++, Java, C#, Matlab, quant, models, strategies, technical analysis, linux, windows P.S. I have been known to be the worst typist. Do not be offended by it as I like to bang stuff out and put priorty of what I d
by Benoît Latest reply from henke37 Tags: No tags yet. Benoît Competent BirdJoined: Sep '12Posts: 76 http://forum.starling-framework.org/topic/securityerror-error-2148-only-local-with-filesystem-and-trusted-local-swf 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 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 resources. at flash.display::LoaderInfo/get content() error #2148 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 ago # henke37 Wise OwlJoined: Jun error #2148 flash '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 log in to post. Gamua - Consistent Game Development across all Platforms