<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
Ken...THANK YOU!<br>
<br>
...and now...I'm going off to fire me. I've even suggested a "target" technique
at the card level to somebody here a few weeks back. Sometimes, I just seem
to be able to snatch defeat from the jaws of victory with such ease... <span
class="moz-smiley-s3"><span> ;-) </span></span><br>
<br>
Best Regards,<br>
<br>
Tim Ponn<br>
<br>
<br>
Ken Ray wrote:<br>
<blockquote type="cite"
cite="mid047601c35cfd$9a2e6940$6801a8c0@LightningFlash">
<pre wrap="">Tim,
How about simplifying it to:
(script of card):
on wackIt
delete the target
end wackIt
(script of the btn you want to delete):
on mouseUp
send "wackit" to me in 10 milliseconds
end mouseUp
This way, it will get a chance to complete its script and then be
deleted when the 'wackit' message passes through the button to the card
script.
Ken Ray
Sons of Thunder Software
Email: <a class="moz-txt-link-abbreviated" href="mailto:kray@sonsothunder.com">kray@sonsothunder.com</a>
Web Site: <a class="moz-txt-link-freetext" href="http://www.sonsothunder.com/">http://www.sonsothunder.com/</a>
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:use-revolution-admin@lists.runrev.com">use-revolution-admin@lists.runrev.com</a>
[<a class="moz-txt-link-freetext" href="mailto:use-revolution-admin@lists.runrev.com">mailto:use-revolution-admin@lists.runrev.com</a>] On Behalf Of T. R. Ponn
Sent: Thursday, August 07, 2003 10:06 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:use-revolution@lists.runrev.com">use-revolution@lists.runrev.com</a>
Subject: Deleting an object with a "bank shot'
Hello all!
I'm attempting to delete an object when I click on it. Of
course...no
can do a frontal lobotomy on yourself...so, I'm trying to use
the send
"in time" structure to send a message to the card that the
object is on.
These are the handlers:
in the card:
on wackIt thisOne
delete thisOne
end wackIt
in the btn I want to delete:
on mouseUp
do "send wackIt (""e&"btn id"&&the id of me"e&") to
card"&"e&"PGM Builder""e&&"in 1 tick"
end mouseUp
I've checked the mouseUp handler by substituting "put" for "do", and
what I get in the msg box looks ok:
send wackIt ("btn id 1297") to card "PGM Builder" in 1 tick
But I get an error when attempting to execute the above from
the msg box.
I know the "wackIt" handler is ok, because I've executed this
from the
msg box successfully:
wackIt ("btn id 1297")
It seems to me that the send "in time" doesn't have the
ability to pass
the parameter. Is this the problem? Should I be using a "function"
structure instead of the "on" structure? I know I could
accomplish this
by using a global var, but this just seems more straight forward.
Thanks in advance for any assistance!
Best Regards,
Tim Ponn
_______________________________________________
use-revolution mailing list
<a class="moz-txt-link-abbreviated" href="mailto:use-revolution@lists.runrev.com">use-revolution@lists.runrev.com</a>
<a class="moz-txt-link-freetext" href="http://lists.runrev.com/mailman/listinfo/use">http://lists.runrev.com/mailman/listinfo/use</a>-> revolution
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
use-revolution mailing list
<a class="moz-txt-link-abbreviated" href="mailto:use-revolution@lists.runrev.com">use-revolution@lists.runrev.com</a>
<a class="moz-txt-link-freetext" href="http://lists.runrev.com/mailman/listinfo/use-revolution">http://lists.runrev.com/mailman/listinfo/use-revolution</a>
</pre>
</blockquote>
<br>
</body>
</html>