i is seen as an item of myArray, when coded like you did. Try _level0["myArray"+i]

gparis