private var oneCall:Boolean function enterFrameHandler(e:Event):void { if (hitTestObject(...)&& !oneCall){ trace("1"); oneCall = true; } }