未找到类型或不是编译时常量

时间:2010-03-20 20:23:44

标签: flash flash-cs3

我一直收到错误:“找不到类型或者不是编译时常量:Team”在我的构造函数上:

package ncaa.Data
{       
    import ncaa.Data.Team;

    public class PositionedTeams{

        public var Position:int;
        public var TopTeam:Team;
        public var BottomTeam:Team;

        public function Team(pos:int, topTeam:Team, bottomTeam:Team){
            Position = pos;
            TopTeam = topTeam;
            BottomTeam = bottomTeam;
        }
    }
}

班级,团队是在第三行导入的,发生了什么?

1 个答案:

答案 0 :(得分:2)

这可能是名称冲突。您拥有的构造函数是Team而不是PositionedTeams