It's a bit hard to see from your code. But as I understood; you have some cards with in ID each, and you want to grab matching data from array when ever the user interacts with that card? - Correct?
If that is the case you properly want to use an associative array instead. In AS3 you use an instance of the Oject class as an associative array (yes that does seem a bit wierd). So maybe you should rewrite your code declaring Names as a Object instead of Array.
With that being said I can see one other problem with your code, you write Names[i] = ...
, but you have not declared the size of the Array (or maybe that is what the generateArray
function does?). Try using Names.push(getDataMeanResult.lastResult[0].name)
instead.
Lillemanden
2010-07-26 11:00:44