flex笔记
flex中设置右键菜单的类:ContextMenu和ContextMenuItem
加载xml文件
var http:HttpServer;
http.url = "config.xml";//src跟目录下的config.xml
http.resultFormat = "e4x";
与后台交互的对象类
[Bindable]
[RemoteClass(alias="People")]
public class Person{}
实现前台Person和后台类People(类全名)的对应
如果还不行,试着在application中添加Person对象的引用
安全沙箱问题你可以
做一个crossdomain.xml文件放到你本地web容器的根目录下
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd" >
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>