I have an array that has been built and passed into actionscript from javascript. Whilst debugging I can see the object fine but when actually using the array I'm not able to access the values. Additionally when hovering over 'keywords[i]' the tooltip pops up the correct value.
The following snippet of code:
//build where clause
var whereClause:String = "Keyword IN (";
for(var i:int=0;i<keywords.length;i++) {
whereClause += "'" + keywords[i] + "', ";
}
whereClause = whereClause.substr(0, whereClause.length-2);
whereClause +=") ";
results in the whereClause var being "Keyword IN ('undefined', 'undefined', 'undefined', 'undefined', 'undefined', 'undefined') "
I can see the array isn't a 'normal' actionscript array, in the watch window it gives it a type '__HTMLScriptArray' so this is obviously where the problem is coming from. Any idea how to get at the data inside the __HTMLScriptArray object?