[]getBounds()方法未定义是咋回事?

我想做个2D的碰撞检测,用
if(sp1.getBounds().intersects(sp2.getBounds())){
trace("发生碰撞了");
b=true;
}
总是提示
"Cannot read property 'getBounds' of undefined"
是咋回事?
已邀请:

fool_tiger

赞同来自:

解决啦,写错对象名了

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作