ho seguito un videotutorial ma non riesco lo stesso a far funzionare sta pagina

il file mxml deve semplicemente fare un login per un sito web
il problema è che quando clicco su login non succede esattamente niente
vi posto il sorgente del flex

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
public function login():void{
loginservice.send();
}
private function onResult(e:ResultEvent):void{
if(e.result.status == true){
Alert.show("login effettuato con successo", "ok");
}
else{
Alert.show("error", "error");
}
}
]]>
</mx:Script>
<mx:HTTPService id="loginservice" url="login.php" method="POST" result="onResult(event)">
<mx:request xmlns="">
<user>txtUser.text</user>
<pass>txtPass.text</pass>
</mx:request>
</mx:HTTPService>
<mx:Panel layout="absolute" title="Login" width="300" height="150">
<mx:Label x="10" y="10" text="Username"/>
<mx:Label x="10" y="40" text="Password"/>
<mx:TextInput x="80" y="10" name="txtUser"/>
<mx:TextInput x="80" y="40" name="txtPass" displayAsPassword="true"/>
<mx:Button x="80" y="70" label="login" click="login()"/>
</mx:Panel>
</mx:Application>


e vi metto anche il sorgente del file php

<?php
echo"<xml versio=\"1.0\"?>";
if(empty($_POST['txtUser'])){
echo"<status>false<status/>";
}
else{
if(empty($_POST['txtPass'])){
echo"<status>false<status/>";
}
else{
echo"<status>true<status/>";
}
}

?>

tenete conto che sono totalmente ignorante di flex..... ho messo tutto nella cartella htdocs del mio webserver ma non riesco a capire dove sia il problema