zoukankan      html  css  js  c++  java
  • flex HTTPService

    <?xml version="1.0" encoding="utf-8"?>

    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="454" height="219">
    <mx:HTTPService id="hs" url="mails.php" method="POST" showBusyCursor="true">
    <mx:request xmlns=""><texx>{dy.text}</texx>
    </mx:request>
    </mx:HTTPService>
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    public function show_result(rt:int):String
    {
    var ft:String="订阅成功!";
    var ft2:String="订阅失败!";
    var ft3:String="请输入邮箱!";
    if(hs.lastResult==2)
    //mx.controls.Alert.show( "订阅成功!");
    return ft;
    else if(hs.lastResult==3)
    return ft2;
    else
    return ft3;
    }
    ]]>
    </mx:Script>

    <mx:TextInput x="116" y="103" id="dy" text="{show_result(hs.lastResult as int)}" enabled="true"/>
    <mx:Button x="317" y="103" label="订阅" click="hs.send()" />

    </mx:Application>

  • 相关阅读:
    os模块
    random模块
    datetime模块
    time模块
    软甲开发目录规范
    模块与包
    函数递归
    内置函数
    【NOIP2016提高组】换教室
    【NOIP2015提高组】运输计划
  • 原文地址:https://www.cnblogs.com/fslnet/p/2512493.html
Copyright © 2011-2022 走看看