How can I delete an object when clicked?
zryip theSlug
zryip.theslug at gmail.com
Sat Jul 24 17:51:58 EDT 2010
On Sat, Jul 24, 2010 at 11:38 PM, Bill Vlahos <bvlahos at mac.com> wrote:
> Phil,
>
> This script doesn't do anything.
>
> Bill
>
> On Jul 24, 2010, at 1:11 PM, Phil Davis wrote:
>
>> Hi Bill,
>> Try this:
>>
>> on mouseUp
>> send ("delete" && the long name of me) to this card in 0 secs
>> end mouseUp
Hi Bill,
In the script of your cd, add a handler to manage the deletion
command deleteMe pTheTarget
delete pTheTarget
end deleteMe
and in the script of the btn execute:
on mouseUp
send "deleteMe the target" to this cd in 0 millisecs
end mouseUp
--
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
More information about the use-livecode
mailing list