DisplayObject bounds and hitTesting

2 views
Skip to first unread message

Sam Prentice

unread,
Apr 4, 2010, 9:52:11 PM4/4/10
to 68...@googlegroups.com
I have a few questions regarding the hitTesting and bounds in DisplayObjects.

I'm assuming that in part 2, the generic drop function should be
extended to ensure that an object's drop location is within the parent
container's bounds.

However, the parent container bounds for the checkerboard continue to
increase as a child object is dragged further off the board to the
right. (e.g. the parent bounds start out as (0, 0, 400, 400), but if
i drag off the board to the right they increase to e.g. (0,0, 542,
400)). This does not happen to the left. But from this point
onwards, the bounds of the parent object remain at the increased size.

Also, has anyone gotten the built in hitTestObject function to work?
It seems to always report a hit anywhere within the entire rectangle
of the global application container (e.g. even when doing something
like component.hitTestObject(component.parent));

Reply all
Reply to author
Forward
0 new messages