Flash type casting gone wrong
Posted
by Malfist
on Stack Overflow
See other posts from Stack Overflow
or by Malfist
Published on 2010-03-16T20:08:11Z
Indexed on
2010/03/16
20:11 UTC
Read the original article
Hit count: 258
flash
|type-conversion
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?
© Stack Overflow or respective owner