Messages problem

Dar Scott dsc at swcp.com
Sun Jul 25 13:38:48 EDT 2004


On Jul 25, 2004, at 9:23 AM, Jim Hurley wrote:

> Turns out, however, that it was easier, as you both suggested, to put 
> a mouseDown handler in the card script and let RunRev do all the 
> message handling.
>
> I used a card button to set a custom property for the card. In the 
> card script it was then a simple matter to use mouseMove and mouseDown 
> to do the things they do best--but only when the custom property is 
> true. (What I'm try to accomplish is something like the Polygon tool 
> in the IDE, only in this case to place a marker at the click point 
> instead of a graphic point. A mouseDoubleDown resets the custom 
> property to false.)

Ah.  I thought you were trying to sync to something.

This is a good solution.  One way to program in an event style is to 
think of user actions changing the state of the app.

Dar Scott



More information about the use-livecode mailing list