Everything works fine, but when I use #pragma strict I get BCE0019 errors.
Here is where I define my variables:
var characterList : Array = new Array();
var theEditedCharacterName : String = "";
var theGender : String = "f";
Then, later in the code, I use this:
// add character to character object list...
characterList[charListCount] = characterMisc();
characterList[charListCount].name = theEditedCharacterName;
characterList[charListCount].gender = theGender;
And... I get the following errors:
Assets/Scripts/game_manager.js(2554,54): BCE0019: 'name' is not a member of 'Object'.
Assets/Scripts/game_manager.js(2555,54): BCE0019: 'gender' is not a member of 'Object'.
Jan 23 '12 at 10:45 PM