博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
-use-network
阅读量:4128 次
发布时间:2019-05-25

本文共 865 字,大约阅读时间需要 2 分钟。

工程刚刚加载就发现报错信息:Main.swf 不能访问本地资源 data/data3.xml。只有仅限于文件系统的 SWF 文件和可信的本地 SWF 文件可以访问本地资源。" faultCode="InvokeFailed" faultDetail="null"]

google一下: 在工程属性 Additional compiler arguments 加入 -use-network=false   

关于use-network=true|false的解释

Specifies that the current application uses network services.
The default value is true.
When the use-network property is set to false, the application can access the local filesystem (for example, use the XML.load() method with file: URLs) but not network services. In most circumstances, the value of this property should be true.

For more information about the use-network property, see Applying Flex Security.

 

另外网上一篇博客说:

将flex项目中的bin-debug文件夹移动到其它地方运行swf的时候无法加载本地文件,提示仅限于文件系统的 SWF 文件和仅限于网络的 SWF 文件不能彼此加载?的解决办法

在project-properties-flex compiler-添加命令参数:-use-network=false

就可以正常加载了。
然后将编译好的swf文件拷贝到其他目录也能直接用Flash Player正常打开,但是不能在网络上访问。

转载地址:http://rygpi.baihongyu.com/

你可能感兴趣的文章
Spring后置处理器BeanPostProcessor的应用
查看>>
Spring框架的ImportSelector到底可以干嘛
查看>>
Mysql中下划线问题
查看>>
微信小程序中使用npm过程中提示:npm WARN saveError ENOENT: no such file or directory
查看>>
Xcode 11 报错,提示libstdc++.6 缺失,解决方案
查看>>
idea的安装以及简单使用
查看>>
Windows mysql 安装
查看>>
python循环语句与C语言的区别
查看>>
Vue项目中使用img图片和background背景图的使用方法
查看>>
vue 项目中图片选择路径位置static 或 assets区别
查看>>
vue项目打包后无法运行报错空白页面
查看>>
Vue 解决部署到服务器后或者build之后Element UI图标不显示问题(404错误)
查看>>
element-ui全局自定义主题
查看>>
facebook库runtime.js
查看>>
vue2.* 中 使用socket.io
查看>>
openlayers安装引用
查看>>
js报错显示subString/subStr is not a function
查看>>
高德地图js API实现鼠标悬浮于点标记时弹出信息窗体显示详情,点击点标记放大地图操作
查看>>
初始化VUE项目报错
查看>>
vue项目使用安装sass
查看>>