On Apr 19, 2014, at 5:36 PM, Richmond wrote:

> when I have a script in a button like this:
> 
> on mouseUp 1
>   put "Left button" in fld "whichMouseBtn"
> end mouseUp 1
> 
> I get a "red hot-cross bun": why?

Check the syntax for the mouseup command. The command expects one parameter, 
mouseButtonNumber. Also, it's put into, not put in.

Try this instead:

on mouseup tBtn
   if tBtn = 1 then
      put "Left button" into fld "whichMouseBtn"
   else if tBrn = 3 then
      put "Right button" into fld "whichMouseBtn"
   end if
end mouseup

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to