I am learning AS3 (coming from a PHP background) and I have hit a wall.
Basically I have this code:
var activeNotesNames:Array; activeNotesNames = new Array; activeNotesNames.push("ABC"); and doing a
trace(activeNotesNames[0]) gives me "ABC" but if I just want the first character (in this case that would be "A") how do I get that?
I tried trace(activeNotesNames[0][0] but that gives me an error.
[0][0]is that the String "ABC" is not an array. As Pan pointed out, you need to use a method of the String class to access individual characters. That syntax would work if instead of having a String you had another array in there.