Hi all,
I’m new to this forum (nice to meet you all!) and I’m in need of help! I have this issue with actionscript 3.0 where i can’t seem to get a String to convert to executable code.
Below is a part of the XML I use.
<Import>
<Row>
<Dag>Dinsdag</Dag>
<Week>11</Week>
<Maand>Maart</Maand>
<Kwartaal>Q1</Kwartaal>
<Jaar>2010</Jaar>
<Merk>Volkswagen</Merk>
<Model>Algemeen</Model>
<Medium>Televisie</Medium>
<Uitgaven>7935</Uitgaven>
</Row>
</Import>
In order to query out trough my XML I use:
trace(xmlData.Row.(Dag=="Dinsdag" && Kwartaal=="Q1" && Jaar=="2010").length());
Now when I want to make my query dynamic, I want to create an array where the query’s will be pushed in, as a test i created:
var searchQueryA:Array = [ "Dag==Dinsdag"
,"Kwartaal==Q1"
,"Jaar==2010"];
trace(xmlData.Row.(searchQueryA[0] && searchQueryA[1] && searchQueryA[2]).length());
The problem I have here is that it is read as a String so it won’t be read properly in my code. If i remove the “” in my Array it tells me that i have an undefined property of Dag, Kwartaal & Jaar.
Does anyone know how i can get this little part of my query properly in an array?
Thanks in advance!