Do you get any errors or does it just not work?
Is the button on the same card as the popup?
Hint:
If you use a handler more than once, it is always a good idea to "outsource" it to
the card or stack script. Do like this, instead of using a button script like:
Code: Select all
on mouseup
dothis
dothat
andthattoo
end mouseup
and later -> send "mouseup" to button X.
You should put this into the card or stackscript:
Code: Select all
command do_many_things
dothis
dothat
andthattoo
end do_many_things
And then this in the button script:
Code: Select all
on mouseup
do_many_things
end mouseup
This way you can execute this command later as often as neccessary outside of the button without the need to "send mouseup to ..."
To "debug" your handler, put only this into the button:
Code: Select all
on mouseup
beep
## your regular stuff
## and more of that but commented OUT!
end mouseup
And see if THAT works.
If not then there may be something wrong in the message path.