So you do need groups to an extent, due to the fact that scrolling is required.
Again, note that controls are locked in space within a group. Now this can be circumvented easily, for example:
Code: Select all
on mousemove
if the optionkey is down then set the loc of the target to the mouseLoc
end mousemove
This allows the user to move with a control within a group.
As Mark pointed out, LC offer control over layers. The problem is that one might easily relayer a control right out of its group. This can be managed, though, restricting it to the layer value between the extreme ends of all the controls in that group. Another method, it occurs to me, is to create a four-tier naming scheme, whereby each of the controls within a layer share a common name part:
button "car1X", button "car2X", button "car3X"
button "car1Y", button "car2Y", button "car3Y
etc.
Or perhaps a custom property, common to all the controls in a layer. In this way you never need to worry about layer number at all. Any action that is set to be valid for a control on "layer Y" will not affect a control on "layer X".
That sort of thing. There are probably a bunch of ways to delineate the members of each "layer". I think the principle is sound. Any ideas you might have?
Craig