Flex 调用 Action
来源:互联网 发布:白银td交易软件 编辑:程序博客网 时间:2024/06/02 00:27
1.设置数据源(动态传递参数):
<s:HTTPServiceid="httpServiceSend" fault="httpServiceSend_faultHandler(event)" result="httpServiceSend_resultHandler(event)" useProxy="false"> <s:request> <id>{transformationId}</id> <step>{step}</step> <runFlag>{runFlag}</runFlag> <fileName>{fileName}</fileName> <dateFlag>{dateFlag}</dateFlag> </s:request> </s:HTTPService>
2.设置出现异常的方法:
protected function httpServiceSend_faultHandler(event:FaultEvent):void{ Alert.show(event.fault.messageasString, "提示");}
3.设置回调的方法:
protected function httpServiceSend_resultHandler(event:ResultEvent):void{ varresult:String = event.resultasString; if(result == "SUCCESS"){ Alert.show( "操作成功!", "提示"); } else{ Alert.show("出现错误!", "提示"); }}
4.动态调用数据源提交数据:
private function sendData(event:MouseEvent):void{ dateFlag = newDate().toString(); method = "getData"; httpServiceSend.url = "http://localhost:8080/FlexDataServer/action/data.action"; httpServiceSend.send();}
阅读全文
0 0
- Flex 调用 Action
- action 调用 action
- Flex 3 in Action
- Flex上传文件到action
- 动态调用action方法
- structs,action调用时序
- QTP 调用动态Action
- 后台调用action
- 动态调用action方法
- 利用ajax调用action
- QTP 调用动态Action
- Action动态方法调用
- Action调用Service
- 调用action的方法
- Action调用过程分析
- 动态调用action
- FLEX 调用外部函数
- flex中调用javascript
- JAVA实时监控目录下文件的变化
- windows平台远程提交基于YARN的MapReduce任务
- 经典算法100例 5 水仙花数
- 定时器TIM和PWM的输出
- 正三角9*9乘法表
- Flex 调用 Action
- 手机短信验证的获取
- 《知道做到》执行力
- socket读写返回值的处理
- 蓝桥杯 算法训练 P0103
- pwntools的常见用法
- homestead错误Your VM has become "inaccessible."
- 459. Repeated Substring Pattern
- Linux内核之进程