-- Edit Notes - Alex pointed out I made some transcription errors in my object names --
I seem to be missing something here...why doesn't this seem to work?
var MyObj = new Object;
MyObj.X = 1;
MyObj.Y = 2;
MyObj.Array = new Array();
MyObj.Array.push (3);
MyObj.Array.push (4);
debugPrintln ("X = " + MyObj.X + " Y= " + MyObj.Y + " Array Length = " + MyObj.Array.length);
The above produces "NaN" for the println.
Thanks,
Garth
I seem to be missing something here...why doesn't this seem to work?
var MyObj = new Object;
MyObj.X = 1;
MyObj.Y = 2;
MyObj.Array = new Array();
MyObj.Array.push (3);
MyObj.Array.push (4);
debugPrintln ("X = " + MyObj.X + " Y= " + MyObj.Y + " Array Length = " + MyObj.Array.length);
The above produces "NaN" for the println.
Thanks,
Garth
Comment