Setting an array as part of a custom class

Hello there, i am trying to make a custom class that has a small number of variables but I can’t seem to get the array part to work. The class file looks like this:
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000]class[/COLOR] Row [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]public[/COLOR] [COLOR=#000000]var[/COLOR] cards:[COLOR=#0000ff]Array[/COLOR];
[COLOR=#0000ff]public[/COLOR] [COLOR=#000000]var[/COLOR] toGo:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]5[/COLOR];
[COLOR=#0000ff]public[/COLOR] [COLOR=#000000]var[/COLOR] gameState:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]0[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]

When I try and set the values of the array like this:
ActionScript Code:
[FONT=Courier New][LEFT]row1.[COLOR=#000080]cards[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]0[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#ff0000]“as”[/COLOR]
[/LEFT]
[/FONT]

or this:
ActionScript Code:
[FONT=Courier New][LEFT]row1.[COLOR=#000080]cards[/COLOR] = cards.[COLOR=#0000ff]split[/COLOR]COLOR=#000000[/COLOR]
[/LEFT]
[/FONT]

I can’t seem to get it to work. I can set and access the other variables OK its just the array thats giving me problems.

Thanks for any kind help in advance!
Schm