Page 2 of 2

Posted: Mon Oct 06, 2008 1:09 pm
by malte
Hi Mark,

if you set the constrainRectangular property of an object, AE starts listening to mouseEvents: mouseDown, mouseUp, mouseRelease and mouseMove events in order to perform the drag. In order not to interfer with those messages and yet being able to react on the events involved, I introduced some callback messages, that are being sent to the target. This was done, because I always forget to pass messages, yet want to do something useful when a drag starts or ends, or even while a drag is being performed.

These callbacks are being sent and can be trapped in the targets script or higher up the messagepath, without passing them and thus breaking the operation:

constrainRectangularInit -> mouseDown
constrainRectangularExit -> mouseUp, mouseRelease
constrainRectangularCallback -> mouseMove (while you drag the object)

Hope that explains it.

Cheers,

Malte

Posted: Mon Oct 06, 2008 1:18 pm
by Mark
Thanks, Malte. I understand it now.

Since properties are that important, I'm thinking, wouldn't it be useful if there were an AE properties inspector?

Best,

Mark

Posted: Mon Oct 06, 2008 1:23 pm
by malte
Yes, that indeed would be useful. Want to make it? <g>

Posted: Mon Oct 06, 2008 1:28 pm
by Mark
I'd be happy to help you out, Malte, but as the inventor of the AE you're definitely more qualified ;-)

Best,

Mark

Posted: Mon Oct 06, 2008 2:00 pm
by malte
Hehe.

Well, I add it as a feature request for AE 3.

Cheers,

Malte