I need to change over from a simple Xml call:
Code:
<mx:XML id="urlsGeneral" source="http://www.mySite.com//.../AFS.xml"/>
to a rpc-Http call which is updating the readout if Xml is changed at any time.
The most important item yet a very simple one: I need this only to be displayed in a title etc, and NOT a datagrid or else example below.
title="{urlsGeneral.urlGeneral.(@name==0).age}
I tried a lot today, but just can't get it right as the id="urlsGeneral" is always the problem.
Any help would be appriciated !!! Thanks in advance. regards aktell
Code:
<urlsGeneral>
<urlGeneral>
<name>Jim</name>
<age>32</age>
</urlGeneral>
<urlGeneral>
<name>Jim</name>
<age>32</age>
</urlGeneral>
</urlsGeneral>
Another call:
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
public var myData:ArrayCollection;
privat function myHttpService_resultHandler(event:ResultEvent):void {
myData = event.result.urlsGeneral.urlGeneral;
}
]]>
</mx:Script>
<mx:HTTPService
id="myHttpService"
url="http://www.mySite.com/..../AFS.xml"
result="myHttpService_resultHandler(event)"/>