I'm having problems moving an alert box. I've created a custom class that is
my remote error handler:
 
<mx:method name="getSomething" result="getSomethingResult(event)"
fault="ErrorManager.remoteError(event)"/>
 
The ErrorManager.remoteError() method looks more or less like this:
 
  public static function remoteError(event:FaultEvent):void {
   var vMessage:ErrorMessage = event.message as ErrorMessage;
   var myAlert:Alert;
 
   CursorManager.removeAllCursors();
   
    myAlert = Alert.show(event.fault.faultDetail,event.fault.faultString);
    var pt1:Point = new Point(0,0);
    pt1 = myAlert.localToGlobal(pt1);
    var newY:Number = (pt1.y - 150) * -1;
    myAlert.y = newY;
  }

Now, localToGlobal(pt1) always returns 0,0. Any idea how I can find the
place on the global stage?
 
Shan

Reply via email to