i got a problem deleteing an image, i guess it's simple but i cant get it working.
I am creating images on the fly and attach a mousedown/up handler to those.
put "do q_open_object(the id of me)" into testt
put "on mouseDown" & cr & testt & cr & "end mouseDown" into theScript
set the script of templateImage() to theScript
Up to now, everything is working just fine.
The q_open_object function calls other functions.
One of those is called reset_objectthumbs:
Code: Select all
function reset_objectthumbs
local iTmp
put 1 into x
repeat the number of images in group "object_thumbs"
if exists (image x of group "object_thumbs") then
put the id of image x of group "object_thumbs" into iTmp
if exists (image id iTmp) then
try
delete image id iTmp
catch someError
add 1 to x
end try
end if
end if
end repeat
put false into toImage
put 0 into modulujungex
put 0 into modulujungey
end reset_objectthumbs
I guess it's basic (i am new to livecode), but how can i call that function and end the mousedown/up event before the function completed?
Thanks in advanced,
john