Mouseup snatched away

Shari shari at gypsyware.com
Thu May 17 00:05:01 CDT 2007


>If the MC frontscript is removed, and then you do something that 
>replaces it, it will go in front of yours because it is the most 
>recent one inserted. You may have a script that removes MC's 
>frontscript, or some IDE actions may re-insert it (painting does, I 
>think.)

No painting involved, or any other drawing type issues.

However, many releases ago I had to create a resumeStack handler to 
address a bug.  My frontscript was disappearing when the stack was 
suspended, or something similar.  So on resumeStack I would check the 
frontscript and if my script wasn't there, reinsert it.

   if myScript is not in frontScripts() then
     insert the script of cd fld 1 of cd 1 of stack someStack into front
   end if


>Is this with the pointer tool or browse tool?
>
>IIRC, MC only acts on mouseUp when the pointer tool is active, and 
>passes it if not.  This has caused issues for me when I need to make 
>drawing environments, and I just made a tool to remove and re-insert 
>MC's frontScript as needed.


Both.  I made sure to select the Browse tool specifically, but either 
way I get the same result.  I'm thinking that Jacqueline's answer 
explains it.  I haven't intentionally removed MC's frontscript, but 
if mine is being removed and I'm needing to replace it, then 
presumably so is MC's.

A very frustrating thing.  My newer project won't touch front and 
backscripts with a ten foot pole.  But the older project is sort of 
stuck with them.  Would take a LOT of doing to delete them.

Shari
-- 
Gypsy King games for
MAC and WlND0WS
http://www.gypsyware.com


More information about the metacard mailing list