Hey Guys,
i have the following Problem - first of all i'm totally new to Flex. I was search through about 20 Websites but haven't found a Solution:
I have xml file like that:
<xml>
<settings>
<mainurl>http://localhost/website/</mainurl>
<adminurl>http://localhost/website/admin</adminurl>
</settings>
</xml>
Now i have
<mx:Model id="xmlfile" source="conf/config.xml">
That works fine for my DataGrid, but in the
<mx:Script></mx:Script>
section i have a function:
private function loadConf():void
{
var admURL:String = xmlfile.setting.mainurl;
}
But it does not work?!?!
How to get it working? As i told before, i have read a lot of Tutorials and Adobe Examples but always found a way working with it on DataGrids and Stuff like that - that ways all work for me, but i can't get the above working.
Hope you can help.
Thx so much, Sascha