`

-use-network

    博客分类:
  • flex
阅读更多


工程刚刚加载就发现报错信息: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正常打开,但是不能在网络上访问。

分享到:
评论
1 楼 xiejiangbo 2009-09-01  
· A thousand-li journey is started by taking the first step.
· 千里之行,始于足下。

相关推荐

    hands-network-programming-c-optimized.rar

    This book gets you started with modern network programming in C and the right use of relevant operating system APIs. This book covers core concepts, such as hostname resolution with DNS, that are ...

    13.3.1 Packet Tracer - Use ICMP to Test and Correct Network Connectivity.pka

    13.3.1 Packet Tracer - Use ICMP to Test and Correct Network Connectivity.pka

    usb-over-network_x64

    1. `usb-over-network-64bit.msi`:这是安装程序文件,用于在64位Windows系统上安装“usb-over-network”软件。 2. `license.rtf`:通常包含软件的许可协议,用户在安装前应详细阅读,以了解软件的使用条款和条件。 ...

    not-use-EsC-key.zip_site:www.pudn.com

    考虑到标签"site:www.pudn.com",我们可以推断这个资源可能来源于PUDN(Programmer's Unions Download Network),这是一个知名的中文技术交流平台,提供各种编程资源和教程。因此,这个压缩包可能是某个开发者分享...

    kali-linux-network-scanning-cookbook-2nd.pdf【高清文字版】【带书签】

    Develop a network-testing environment to test scanning tools and techniques ? Understand the principles of network-scanning tools by building *s and tools ? Identify distinct vulnerabilities in web ...

    usb-over-network4.74

    NETWORKUSB OVER NETWORK利用软件方式实现USB 设备的网络共享 ,分为服务器端和客户端两部分组成 ,服务器端需要安装在物理服务器上,以支持物理USB 设备的插入 ,客户端安装在其他计算机上 ,通过客户端与服务器的软件...

    mysql安装配置教程-model-for-network-ids-m开发笔记

    MySQL安装配置教程是数据库管理初学者和开发者的重要学习资源,特别是在使用model-for-network-ids-m项目时。MySQL是一个广泛使用的开源关系型数据库管理系统(RDBMS),它在各种规模的应用程序中都扮演着核心角色,...

    Prentice.Hall.PTR How Secure is Your Wireless Network--Safeguarding.Your.Wi-Fi.LAN

    from the home to the enterprise.This is the definitive and easy-to-use WLAN security book you'vebeen searching for--whether you're a network administrator,security specialist, manager, or home user.

    FLEX安全沙箱实用指南

    2. **本地文件访问控制**:通过设置`-use-network=false`来禁止本地文件系统的访问,或者使用`-use-network=true`来允许访问。 3. **防火墙设置**:合理配置防火墙规则,限制特定端口的访问,比如只允许1024端口以上...

    the-use-of-the-.pro-file-.zip_The Pro

    QT框架是跨平台的开发工具,广泛用于创建图形用户界面和其他软件应用。...本压缩包提供的`the use of the .pro file.doc`文档应该会更详细地阐述`.pro`文件的用法和实例,建议查阅以获取更多实用信息。

    Designing2Dand3DNetwork-on-ChipArchitectures-(2014).pdf

    Network-on-Chip technology has been a popular research topic for a while now, and is the current design paradigm for multi- and many-core architectures. It is also a natural complement for 3D ...

    how-to-read-a-local-xml-file-with-flex.pdf

    2. 在“Additional compiler arguments”字段中添加 `-use-network=false` 这个参数。 3. 这样一来,Flex就会知道这个文件是本地文件,无需通过网络获取。 #### 编写Flex代码 现在可以开始编写Flex代码了。下面是...

    Practical Packet Analysis: Using Wireshark to Solve Real-World Network Problems

    Practical Packet Analysis: Using Wireshark to Solve Real-World Network Problems by Chris Sanders English | 28 Mar. 2017 | ASIN: B06XX74R1X | 368 Pages | AZW3 | 24.73 MB Wireshark is the world's most ...

    O-RAN.WG1.Use-Cases-Detailed-Specification-v04.00.pdf

    O-RAN(Open Radio Access Network)是一个开放无线接入网联盟,旨在推动无线接入网的开放化、智能化和虚拟化。O-RAN联盟通过发布不同的技术规范来指导和推动其成员(包括电信运营商、设备供应商、软件提供商和研究...

    zetta-fona-network-serial-driver:用于 FONA 网络功能的 Zetta 驱动程序

    $> npm install zetta-fona-network-serial-driver ###用法 var zetta = require('zetta'); var FonaNetwork = require('zetta-fona-network-serial-driver'); zetta() .use(FonaNetwork) .listen(1337) 硬件...

    O-RANWG1Use-Cases-Detailed-Specification_oran_5GCommunications_O

    首先,O-RAN(Open Radio Access Network)是一个旨在推动无线接入网(RAN)更加智能、开放和解耦的全球性产业联盟。它提倡通过引入云计算、边缘计算和人工智能(AI)技术,使网络更灵活,降低运营成本,并促进不同...

    Complex Network Analysis in Python-The Pragmatic Programmer(2018).pdf

    the way to network-based cultural domain analysis and a marketing study of Sephora cosmetic products. If you cannot find any direct or indirect relationships between the items, but still would like to...

    Network Analysis Using Wireshark 2 Cookbook

    The book expands on some of the subjects explored in the first version, including TCP performance, network security, Wireless LAN, and how to use Wireshark for cloud and virtual system monitoring....

Global site tag (gtag.js) - Google Analytics