Flex与Java通信基础
2017-08-17 本文已影响0人
疏_桐
1.配置环境:Eclipse+FlashBuiler4.6+TomCat6.0+blazeds
2.将blazes下的blazeds.war解压缩,将其中的WEB-INF文件夹覆盖到新建的Eclipse下的WEB项目中
3.修改WEB-INF/flex/remoting-config.xml,如下图所示

4.将项目部署到Tomcat上
5.创建Flex项目,做如下配置:



特别注意!Eclipse下的路径为E:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\项目名(也有可能在tmp0和tmp2),MyEclipse下的路径为Tomcat6.0\webapps\项目名
6.在mxml文件中做如下配置:

配置完成!!!