现在的位置: 首页 > 综合 > 正文

Flex and PHP: remoting with Zend AMF

2013年01月16日 ⁄ 综合 ⁄ 共 3944字 ⁄ 字号 评论关闭

PHPcode:

yourProject/amf/index.php

 

yourProject/amf/Myservice.php

 

yourProject/amf/Pop.php

 

当PHP搭建好后,可访问http://localhost/yourProject/amf/
,如果显示

Zend Amf Endpoint

说明PHP已经搭建成功。


Flexcode:

创建你的Flex项目后,右键你的项目Properties->Flex Compiler->Additional compiler arguments:添加

-services "services-config.xml"

 

yourProject/src/services-config.xml

 

设置与PHP对应的Model

yourProject/src/models/Pop.as

 

yourProject/src/main.mxml

【上篇】
【下篇】

抱歉!评论已关闭.