Deleting a Button by Clicking it
Posted: Tue Feb 28, 2012 5:42 am
Hi all,
I was wondering how I could delete a button by clicking it whenever the button is intersecting with a certain object.
I have tried using:
on mouseUp
if intersect(this button, "Door", "opaque pixels" then
delete this button
end if
end mouseUp
However, this always seems to end up failing. Does anyone have any advice for me? Thanks a lot!
I was wondering how I could delete a button by clicking it whenever the button is intersecting with a certain object.
I have tried using:
on mouseUp
if intersect(this button, "Door", "opaque pixels" then
delete this button
end if
end mouseUp
However, this always seems to end up failing. Does anyone have any advice for me? Thanks a lot!