Hi guys,
I have a question regarding arrays.
As far as I know, you can’t refer to an array using negative indices in actionsscript, can you? I know it’s possible in C, C++ and D, but not in actionsscript - to my knowledge. See here’s my problem:
for (var i = 0; i<menucount; i++) {
xpos += menuitems[i-1]._width/2+miborder+menuitems*._width/2;
menuitems*._x = xpos;
}
Am I not right in assuming, that this array call produces menuitems[-1] in the first run?
All variables are properly declared - in fact this code works just fine, and I don’t understand that. Could someone please enlighten me?
//deafdigit