<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”absolute”
backgroundColor=”#FFFFFF”
backgroundAlpha=”0″
backgroundImage=”" >
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.Alert;
public function handlePlain(event:ResultEvent):void
{
summit.htmlText = event.result.toString();
}
public function handleFault(event:FaultEvent):void
{
Alert.show(event.fault.faultString, "Error");
}
]]>
</mx:Script>
<mx:HTTPService result=”handlePlain(event);” fault=”handleFault(event);” id=”plainRPC” resultFormat=”text”
url=”http://**************/flex3/plainHttpService.php”
useProxy=”false”>
<mx:request xmlns=”">
<zipcode>{zipcode.text}</zipcode>
<pounds>{weight_lb.text}</pounds>
</mx:request>
</mx:HTTPService>
<mx:Label x=”56″ y=”32″ text=”Zip Code” width=”55″ height=”18″ textAlign=”right” fontWeight=”bold”/>
<mx:Label x=”56″ y=”58″ text=”Weight” width=”55″ height=”18″ textAlign=”right” fontWeight=”bold”/>
<mx:TextInput x=”130″ y=”32″ id=”zipcode” width=”160″ height=”22″/>
<mx:TextInput x=”130″ y=”58″ id=”weight_lb” width=”160″ height=”22″/>
<mx:Button x=”130″ y=”95″ label=”summit” click=”plainRPC.send();” width=”160″ height=”22″/>
<mx:Text x=”56″ y=”150″ id=”summit” width=”310″ height=”133″ fontWeight=”bold”/>
</mx:Application>
Hi, this is a comment.
To delete a comment, just log in, and view the posts’ comments, there you will have the option to edit or delete them.