reading variable from xml file in flex

Posted by m0j1 on Stack Overflow See other posts from Stack Overflow or by m0j1
Published on 2011-01-15T20:01:34Z Indexed on 2011/01/16 0:53 UTC
Read the original article Hit count: 205

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about Xml

Related posts about flex