When I dynamically create objects, I typically set the behavior of the
templateButton to point to a button on another card. That button contains the
script for my new buttons.
So, on another card, create a button that contains something like this...
on mouseup
switch the label of the target
On Wed, May 29, 2013 at 8:46 AM, Mike Bonner wrote:
> look at "the target" in the dictionary.
>
I also use buttons with the script
on mouseUp
dispatch the short name of me
end mouseUp
or
on mouseUp
doSomething the short name of me
end mouseUp
where a doSomething handler is on the car
On 05/29/2013 07:55 PM, Richmond wrote:
Well, I don't know what is so difficult about that:
on openCard declare a global string variable (e.g. BNAME)
and then have this as 2 lines of code in each button script:
put the name of me into BNAME
pass mouseUp
and then this in your card script:
on
Well, I don't know what is so difficult about that:
on openCard declare a global string variable (e.g. BNAME)
and then have this as 2 lines of code in each button script:
put the name of me into BNAME
pass mouseUp
and then this in your card script:
on mouseUp
put BNAME
end mouseUp
Of cour
look at "the target" in the dictionary.
On Wed, May 29, 2013 at 9:44 AM, Graham Pearson wrote:
> Looking for a way to detect which button was clicked by the user and
> retrieve the name field of this so based on the button different actions
> can be performed.
>
> Each button was placed on the
Looking for a way to detect which button was clicked by the user and
retrieve the name field of this so based on the button different actions
can be performed.
Each button was placed on the card using the create invisible button
command and after placing at a specific location, setting the label t