develar/miglayout-as — Issue #1: screenLocationX и screenLocationY неверно вычисляются
Author: profelis
Created: 2011-12-14 19:46:41+00:00
State: open

простой пример

var testSprite:Sprite = new Sprite();
testSprite.x = 100;
testSprite.y = 100;
var testLocalCont:FlashContainerWrapper = new FlashContainerWrapper(testSprite, new MigLayout());
addChild(testSprite);

trace(testLocalCont.screenLocationX, testLocalCont.screenLocationY); // 200, 200

По идее должно быть чтото типа

public function get screenLocationX():Number
{
return c.localToGlobal(new Point()).x;
}

public function get screenLocationY():Number
{
return c.localToGlobal(new Point()).y;
}