I have DynamicPinPoint and liquid.update working well together so that I can position objects at the bottom right corner of other display objects that change in size.
But I am sometimes having a strange problem with DynamicPinPoint's attach method. When the page first comes up some objects tied to a DynamicPinPoint will be in the wrong place. As soon as I resize the page, they move into their correct positions. So, the function used by DynamicPinPoint is returning the correct values.
The problem seems to be related to the attach call, because if I comment out the attach call, then the objects do come up in the correct initial location.
Any ideas? The follow is one of the DynamicPinPoints that I have on the page.
addChild(ministryBtns);
var botCorner:Point = ministryGridCorner();// call DynamicPinPoint function
ministryBtns.x = botCorner.x - ministryBtns.buttonsWidth;
ministryBtns.y = botCorner.y + 5;
_ministryGridCornerPin = new DynamicPinPoint(this, ministryGridCorner);
_ministryGridCornerPin.attach(ministryBtns);
The following is my liquid stage constructor:
_liquid = new LiquidStage(stage, stage.stageWidth, stage.stageHeight, 500, 400, stage.fullScreenWidth, stage.fullScreenHeight);