Our project requires that there are objects created dynamically on the card
at runtime.
For now I managed this by cloning an image.
This is my code for the button:
Code: Select all
on mouseUp
local counter=0
repeat with counter=1 to 5
clone image "Image1"
set the top of it to random(225)+10
set the left of it to random(225)+10
end repeat
end mouseUp
The question is this: How can I prevent the clones from being permant. Is there a way
to make revolution clean up when I switch back to design mode?
Is there another way of creating controls at runtime?
Cheers
Kristo