SecurityError: Error # 2148: SWF file file:///F:/work2010/tiger/rmpublisher.air/bin-debug/index.swf file:///F:/work2010/tiger/rmpublisher.air/bin-debug/plugins/plugins.xml cannot access the local resources. Only file system-limited SWF files and trusted local SWF files can access local resources.
at flash.net: : URLStream/load ()
at flash.net: : the URLLoader/load ()
the at com. Edlt. Utils: : Settings/loadSettings () [D:
Solutions:
The first:
Right click on flex project –& GT; properties–> ActionscriptCompiler–> Additional compiler arguments
plus “-use-network=false” is OK
SWF will not be able to access network resources such as socket communications.
So it’s better not to use it that way.
The second:
I have found a lot of articles on security sandbox on the Internet, most of which are about how to solve the problem of network resource access, which is different from what I want in this article. Although these articles do not address the issue of local resource access. The solution to this problem should be similar, with the network adding a trusted domain name in a cross or something file to allow access, then the local resource should also be able to add a local resource path somewhere to allow access.
The details are as follows: find system32\Macromed\Flash\FlashPlayerTrust in the Windows installation directory, create a text file in this directory, enter the detailed path of Flash to access local resources in the file, and save. Execute SWF, no more errors. OK
For example: in C:\WINDOWS\ System32 \Flash\FlashPlayerTrust directory to add a file, such as: 1. TXT (file name can be arbitrarily started), the file content is: “D:\demo\test\” that is the project path, of course, can also be set to “D:\”
at flash.net: : URLStream/load ()
at flash.net: : the URLLoader/load ()
the at com. Edlt. Utils: : Settings/loadSettings () [D:
Solutions:
The first:
Right click on flex project –& GT; properties–> ActionscriptCompiler–> Additional compiler arguments
plus “-use-network=false” is OK
SWF will not be able to access network resources such as socket communications.
So it’s better not to use it that way.
The second:
I have found a lot of articles on security sandbox on the Internet, most of which are about how to solve the problem of network resource access, which is different from what I want in this article. Although these articles do not address the issue of local resource access. The solution to this problem should be similar, with the network adding a trusted domain name in a cross or something file to allow access, then the local resource should also be able to add a local resource path somewhere to allow access.
The details are as follows: find system32\Macromed\Flash\FlashPlayerTrust in the Windows installation directory, create a text file in this directory, enter the detailed path of Flash to access local resources in the file, and save. Execute SWF, no more errors. OK
For example: in C:\WINDOWS\ System32 \Flash\FlashPlayerTrust directory to add a file, such as: 1. TXT (file name can be arbitrarily started), the file content is: “D:\demo\test\” that is the project path, of course, can also be set to “D:\”
Read More:
- Securityerror: error ᦇ 2148: SWF file XXX cannot access local resources, only file system only
- 0001: unable to locate the content swf directory: app:/mod/win
- “Securityerror: error ා 2060: Security sandbox conflict: external interface caller XXX cannot access XXX”
- Android reports failed linking file resources
- Google cloud disk: too many users have recently viewed or downloaded this file. Please try to access this file later. (How to Bypass Google Drive Download Limit (Quota Exceeded) Error)
- HDFS and local file transfer and error reporting
- Ng Zorro antd file stream upload, access to upload file path
- Chrome local file translation tool
- Local workspace file (‘angular.json’) could not be found.
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- Centos7 via / etc/ rc.local File configurator boot
- Solve the problem that the Raspberry Pi cannot start (dependency failed for Local File Systems)
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / / book/gitbook/git
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / /_ book/gitbook/git
- Solution of no input file specified. In local server Apache
- nginx: [error] open() “/usr/local/var/run/nginx.pid” failed (2: No such file or directory)
- Navicat import local SQL file error “[MSG] finished – unsuccessfully | [err] 1046 – no database selected”
- Cannot remove entries from nonexistent file /usr/local/bin/anaconda2/lib/python2.7/site-packages/eas
- File contains no section headers. File: File: / / etc/ yum.repos .d/
- Unable to open the physical file “d:\***.mdf”. Operating system error 5: “5(Access is denied.)”.