I have read it and I played around with it. I appreciate you writing it but it is not answering the questions I posted above. I spent a little more time with it just now and changed the blocks so that they always appeared in the same location so I could be certain I wasn’t wasting your time.
AnchorChildren seems to simply move the reference point of the group to a point within the objects of the group defined by anchorX and anchorY.
I feel that what makes it confusing is the name. The children in a group are in a fixed position from the moment you add them to the group, they aren’t being anchored by anchorChildren. It would seem that it would make more sense if it were named, anchorAsRef = true or something like that. The way it is named, I was expecting the objects in my group to start sliding around when I moved the group and that is not what happens (thank God for that).
I think the problem I am still having is, there doesn’t seem to be any tools that allow you to quickly assertain the total width of all the objects in the group that are considered by anchorChildren. You say that anchorChildren converts the group so that it has a finite width and height but I don’t have access to the information about those boundaries.
For example, referring to your tutorial, say I wanted to create 5 buttons that move the anchor point to the center of each of your 5 rectangles. I think what I would have to do is determine which of the rectangles is farthest to the left and the right, then calculate the x offset and y offset of the target rectangle from that position, then move the anchorX and anchorY to the fraction equivalent of that position, then anchorChildren, then rotate.
That’s a pretty big mathematical mess, especially if you change which rectangle is in the center after they start rotating.
I am also still unclear on whether or not anchorX and anchorY has an effect on the behavior of a group when you don’t turn on anchorChildren. It doesn’t seem to affect the rectangles in your example until I anchorChildren. I might be trying to get it to do something that it just doesn’t do. What I really want is to get back the functionality that existed before the change so that the code that I have been developing for almost a year will stop being broken by “graphics 2.0”. I want a coordinate based displayGroup with it’s reference point in the upper left corner. Now it seems that the only way I can get an upper left corner reference is by using fraction based positioning which is not nearly as flexible/simple.