>>71
public class Foo extends Sprite {
 public function Foo() {
  addEventListener(Event.ADDED_TO_STAGE, onBar);
 }
 public function onBar(e:Event):void {
  removeEventListener(Event.ADDED_TO_STAGE, onBar);
  var x:int = stage.stageWidth;
 }
}