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
Drag and drop question.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
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
Since properties are that important, I'm thinking, wouldn't it be useful if there were an AE properties inspector?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
I'd be happy to help you out, Malte, but as the inventor of the AE you're definitely more qualified ;-)
Best,
Mark
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode