reading variable from xml file in flex
- by m0j1
hi , I'm trying to read the address of a flv file from an xml file and then put it in the "source" property of a videodisplay tag .
here's my code :
//in decleration tags
<fx:Model id="myModel" source="myXML.xml"/>
<s:ArrayList id="myArrList" source="{myModel.main}"/>
//in the main code
<mx:VideoDisplay id="videoDisplay" source="{myArrList.getItemAt(0)}" />
and the xml file is:
<main>
<myFile>"g:\myflv.flv"</myFile>
</main>
anyone knows what's wrong?
tnx