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!
Deleting a Button by Clicking it
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Deleting a Button by Clicking it
Hey, check out this thread. http://forums.runrev.com/viewtopic.php? ... ete+itself
You will want to do the intersect in the stack script (from that thread) so you'll want to pass "the long id of me" as well as a reference to the object to check intersect against.
also, i'm sure its a typo but if not, make sure you put the closing ) on your intersect function.
You will want to do the intersect in the stack script (from that thread) so you'll want to pass "the long id of me" as well as a reference to the object to check intersect against.
also, i'm sure its a typo but if not, make sure you put the closing ) on your intersect function.