I have a scriupt that creates a group and then I create a objects in the group.
When I try to set the "loc" of the object it does not work, it snaps to the top left corner.
I've tried just about everything ... I open the group for editing (start editing), but on ending the editing snaps it back to the top left corner again.....
Here is my code,
Code: Select all
//create the group, set size & properties
create group "LocalUserListGroup"
set the opaque of it to "true"
set the vscrollbar of it to "true"
//set the width of it to 500
//set the height of it to 590
//set loc of it to "372,455"
set the backgroundcolor of it to "55,55,55"
set lockLoc of it to true
set the innerglow["color"] of it to "0,0,0"
set the innerglow["opacity"] of it to 150
set the innerglow["size"] of it to 20
put it into grouplongid
//draw avatars, custom colored frames and names
local FirstLocx
local FirstLocy
local CurrentLocx
local CurrentLocy
global LocalUsersArray
set lockLoc of grouplongid to false
start editing group "LocalUserListGroup"
// IMAGE
create image LocalUsersArray[1]["User ID"]
set the name of it to LocalUsersArray[1]["User ID"]
set the width of it to 150
set the height of it to 150
set the loc of it to "100,400"
set lockLoc of it to true
set the filename of it to LocalUsersArray[1]["User Avatar"]
stop editing
set the width of grouplongid to 500
set the height of grouplongid to 590
set loc of grouplongid to "372,455"
//set the lockScreen to false