FlexによるWEBメールのソースコード その3

signatureWindow.mxml


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

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"  x="29" y="24" width="492" height="444" layout="absolute"

showCloseButton="true" close="PopUpManager.removePopUp(this);" creationComplete="initApp();" borderColor="#0000ff" backgroundColor="#bfffbf">


<mx:Script>

<![CDATA[

import mx.managers.PopUpManager;


private var closeflg:Number = 0;


private function initApp():void

{

signature_work.url = "/signature.cgi";

signature_work.send();

}


private function signature_work_start():void

{

var req:URLRequest = new URLRequest("/signature.cgi");

req.method = URLRequestMethod.GET;

var variables:URLVariables = new URLVariables();

variables.signatureid = signatureid.text;

variables.signature = signature.text;


req.data = variables;


sendToURL(req);


PopUpManager.removePopUp(this);

}


private function clear():void

{

signature.text = "";

}

]]>

</mx:Script>


<mx:HTTPService id="signature_work"

url="/signature.cgi" useProxy="false" />

<mx:Button x="197.5" y="375" label="編集登録" click="signature_work_start()"  fontSize="14" color="#000000"/>

<mx:Button x="21.5" y="373" label="クリア" click="clear()"  fontSize="14" color="#000000"/>

<mx:Button x="10" y="9" label="閉じる" fontSize="14" color="#000000" click="PopUpManager.removePopUp(this);" />

<mx:TextArea id="signature" text="{signature_work.lastResult.rss.channel.signature}" x="21.5" y="52" width="429" height="299" fontSize="14" color="#000000" fontWeight="bold"/>

<mx:Label id="signatureid" x="141" y="13" width="0" height="0" text="{signature_work.lastResult.rss.channel.signatureid}"/>


</mx:TitleWindow>





コメントをどうぞ