I'm trying to make my code a bit more concise, and i think i've created my own issue here, but i can't quite tell what it is.
I've created a space where 10 objects can be created. What i'm trying to do create a "delete all" button to check and see how many note images have been created, and delete them if they are.
Here's what i've come up with so far, but i've not yet gotten it to work:
Code: Select all
repeat with h = 1 to 10
if exists (image "note" & h) then
repeat with i = 1 to 10
delete image "note" & i
end repeat
end if
end repeat
thanks in advance for any assistance you may provide.
-Sean