Flash type casting gone wrong
- by Malfist
Sorry, I'm new to flash I have this line of code:
BaseEntry( _entryList[i] ).topTeamName = ((Team)(teamList.getNameAtIndex( i*2 ))).Name;
and I get the error:
TypeError: Error #1034: Type Coercion
failed: cannot convert "[object Team]"
to ncaa.Data.Team.
What do I need to do to fix it?