Flash Security Error 2148
Contents |
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: *** only local-with-filesystem and trusted local swf files may access local resources. Security Sandbox Violation *** Connection to file:///swf_file_A.swf halted - not permitted from file:///swf_file_B.swf
Actionscript Error 2148
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 flash global security settings 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 Community Post questions and get answers from experts. Ask now Contact Us Real help from real people. Start now ^Back to top Was this page helpful? Yes No Submit No Comment By clicking Submit, you accept the Adobe Terms of Use. Change regionUnited States (Change)
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 SecurityError: Error #2148: https://helpx.adobe.com/flash-player/kb/flash-builder-flash-player-throws.html SWF file file up vote 8 down vote favorite i am fresher to the flash devekopment. i'm using Flash Develop IDE. i am creating a simple slide show. it works fine in FD when running. i'm moving that swf file ,required image folder and xml file to desktop.now we run that swf file it's working fine. it shows SecurityError: Error #2148: SWF file file:///C|/Users/king/Desktop/bin/MyHeart.swf http://stackoverflow.com/questions/9184380/securityerror-error-2148-swf-file-file cannot access local resource file:///C|/Users/king/Desktop/bin/heart_broke.png. Only local-with-filesystem and trusted local SWF files may access local resources. at flash.display::LoaderInfo/get content() at Function/()[D:\FlashProjects\My Heart\src\Main.as:62] i am little confused with this issue. is there any way to handle it. thanks in advance. flash slideshow share|improve this question edited Feb 7 '12 at 22:08 skaffman 277k63618656 asked Feb 7 '12 at 21:39 user963540 46114 please confirm your answer –mizi_sk Sep 10 '12 at 13:47 add a comment| 2 Answers 2 active oldest votes up vote 19 down vote Visit the Flash Player Global Security Settings Panel. Then: Click Always Allow Click Edit Locations Click Add Location Click Browse For Folder Select the location that your SWF will be located at. Click Confirm This should solve your issue. share|improve this answer edited Feb 12 '13 at 23:22 answered Feb 7 '12 at 22:28 Marty 27.4k1657138 ok but what if you need to do that from the command line? (on a server) –mika May 20 '13 at 21:30 @mika What are you talking about? –Marty May 20 '13 at 21:35 1 I have a swif file running on the backend wit
be down. Please try the request again. Your cache administrator is webmaster. Generated Fri, 14 Oct 2016 08:51:00 GMT by s_ac5 (squid/3.5.20)