answer kill variable

Shari shari at gypsyware.com
Thu Jul 28 06:13:36 CDT 2005


>on mouseup
>   put the clicktext # I get the clicktext :-)
>   put the clicktext into FraSu
>   put FraSu # i get FraSu :-)
>end mouseup
>
>on mouseup
>   answer the clicktext # I get the clicktext :-) again
>   put the clicktext into FraSu
>   answer FraSu # i get nothing :-)
>end mouseup
>
>What's the reason. Can anybody explain it?
>
>Thanks
>Reinhold


The clicktext may only work immediately after clicking on the text. 
Once you've done other things, such as "answer", there is no 
clicktext anymore, but an "it" variable, depending on the button 
pushed in the "answer" dialog.  In other words, clicktext may not 
hold information forever.  Think of it as more of a temporary 
variable that needs to be used immediately.

Similar to when you "get" something, it goes into the "it" variable. 
"answer" puts new info into the "it" variable.  Anytime I am going to 
use answer after getting info, I make sure the info is in its own 
variable first.  "it" is a temporary variable that is overwritten 
very quickly.  clicktext is probably the same way.  If you "click" on 
something that wasn't "text in a field", there would be no clickText, 
henceforth, you get empty.

I'm sure others can answer it more technically.  But you had it right 
the first time, in other words :-)

on mouseup
   put the clicktext into FraSu
answer FraSu
put FraSu
end mouseup
-- 
Mac and Windows shareware games
http://www.gypsyware.com


More information about the metacard mailing list