Re: [Flashcoders] hitTestPoint "hit-ing" on invisible objects

2010-03-12 Thread Henrik Andersson
Stan Vassilev wrote: So... Why is hitTestPoint not respecting child visibility? Does anyone know a solution to this issue? Because it is by design. Don't like it? Use getObjectsUnderPoint and figure out the exact object that you want. ___ Flashcode

[Flashcoders] hitTestPoint "hit-ing" on invisible objects

2010-03-11 Thread Stan Vassilev
Hi, Try this (CS4, frame 1 script, with minor mod will work in Flex): import flash.display.Sprite; var host:Sprite; var child:Sprite; addChild(host = new Sprite()); host.addChild(child = new Sprite()); child.graphics.beginFill(0xFF); child.graphics.drawRect(0, 0, 100, 100); trace(host.hitT