I hav this if condition:-
if(leo.blocking == true && leo.leftLimb.hitTestObject(hitList[i])==true){
}
its in an enterframe event and leo.blocking is false. but still it is entering the if brackets, ~_~ makes me cry!
I hav this if condition:-
if(leo.blocking == true && leo.leftLimb.hitTestObject(hitList[i])==true){
}
its in an enterframe event and leo.blocking is false. but still it is entering the if brackets, ~_~ makes me cry!
如果您的条件显然是错误的,但它进入了它......
检查您的 swf 是否已更新(不是由 ide/浏览器缓存)。添加一些愚蠢的东西Alert
,比如消息或一些颜色变化,或者如果你正在调试,则添加一个跟踪语句。
有时 ide 会错误地显示手表(但我想这不是你的情况,它通常发生在更复杂的表达式中)。在这种情况下,您必须添加trace
表达式才能看到真正的价值。
你确定 leo.blocking 是真的吗?尝试追踪 leo.blocking。
进入条件没有意义......或者有时可能会改变 leo.blocking 。
你有更多信息吗?很难像这样提供帮助:)
如果你请给我更多的代码,我很乐意提供帮助。
干杯!