flex HTTPService

[code="java"]<?xml version="1.0" encoding="utf-8"?>

mx:Script
<![CDATA[
public function SubmitLogin():void{
login.send();
}
]]>
/mx:Script
url="http://localhost:8080/javaVoteSystem/index.jsp"
useProxy="false">
mx:request
{Math.random()}
{this.username.text}
{this.password.text}
/mx:request
/mx:HTTPService

<mx:Canvas x="154" y="33" width="271" height="246">
    <mx:TextInput id="username" x="10" y="35"/>
    <mx:TextInput id="password" x="10" y="98"/>
    <mx:Button x="168" y="192" label="Button" click="SubmitLogin();"/>
</mx:Canvas>

/mx:Application[/code]

Element type "mx:HTTPService" must be followed by either attribute specifications, ">" or "/>". 这个是怎么回事啊?
我的QQ117064092还有些别的问题 哪位大牛能加下我 给我解答下 万分感谢了

另外,请你result="loginResult();"id="login" 空格result="loginResult();" id="login"

loginResult()你的这个函数呢?
他是用来处理返回结果啊