2009-02-23から1日間の記事一覧

ステージからみた座標

あるオブジェクトからみた座標、つまり相対座標を得る場合。 private var sp:Sprite = new Sprite(); addChild(sp); trace(sp.getBounds(this));getBounds メソッドの引数になっているオブジェクトを基準として、そこからの座標情報等を Rectangle のインス…