i'm sure i'm missing something simple, but can't figure out wha that is... I'm trying to clone a button, and move it to a specific group.
I know how to create a button in a group, and clone an object using the following code:
clone pre-existing object:
Code: Select all
on mouseUp
clone the button "ButtonTemplate"
set the name of the last button to "button1"
set the loc of button "button1" to 212,162
end mouseUp
Code: Select all
on mouseUp
create button "button1" in grp "test"
end mouseUp
i feel like i'm on the right track, but that confidence could be completely unfounded...
anyways if anyone has any insight into how i might be able to accomplish this i'd greatly appreciate it!
thanks in advance!
-Sean