PDA

View Full Version : how to call httpservice with parameters?


windec
05-04-2009, 02:00 PM
I have a slider that will call a function which ultimatley calls a php script with parameters based on its values.
Say if the value is below 10, it will call the function reactoslid which calls a specfic httpService. It does not work,
please say why?



private function reactoslid (event:Event):void{

if (myslider.value < 10 ) {
httpService_lowsp.send()
}
//more if clauses for various slider values.
}
//this service is for the lowest value of the slider

<mx:HTTPService
id="httpService_lowsp"
url="http://server/resultasxml.php?spee=low"
result="onResHttpServ(event)"
resultFormat="e4x"
/>

private function onResHttpServ(avResultEvent:ResultEvent):void
{
//parse the xml , show the results
}

box86rowh
05-04-2009, 02:10 PM
When you say it does not work, what do you mean? are you getting errors?