If that doesn't work, bind to a custom getter:
[Bindable(event="gotNewData")]
private function get myData() : Object {
return xml_httpservice_q1.lastResult.resultaat;
}
and (from the same object) listen for the result event, and do something
like this:
private function resultHandler(event : ResultEvent) : void {
disptchEvent(new Event("gotNewData"));
}
As usual, all code typed in gmail, not builder, so it'll be typo-licious :)
-Josh
On Mon, Jun 9, 2008 at 2:23 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
> You could try
>
>
>
> source="{XML(xml_httpservice_q1.lastResult).resultaat}"
> ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *cedric_colpaert
> *Sent:* Saturday, June 07, 2008 4:06 AM
> *To:* [email protected]
> *Subject:* [flexcoders] reload data received from HTTPService
> (XMLListCollection)
>
>
>
> How do I reload data received from HTTPService?
>
> <mx:HTTPService id="xml_httpservice_q1"
> url="q1.php?randomnumber=(randomnumber)" resultFormat="e4x"/>
> <mx:XMLListCollection id="xml_result_q1"
> source="{xml_httpservice_q1.lastResult.resultaat}"/>
> and on creationComplete: xml_httpservice_q1.send();
> I get the XML data, no problem there.
>
> when I perform xml_httpservice_q1.send(); a second time (I want to
> reload the data from the q1.php since it has changed), I receive the
> following error:
> warning: unable to bind to property 'resultaat' on class 'XML' (class
> is not an IEventDispatcher)
>
>
>
--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]