--- In [email protected], "EddieBerman" 
<[EMAIL PROTECTED]> wrote:
>
> I can't help with the Alert issue, but since I often debug within a 
> wrapper, here's one alternative that provides a constant, simple 
> debug window. I can't remember, but I might've grabbed it from this 
> forum originally.
> 
> Paste the code below in your app.
> Call showWindow() to activate the window.
> Call debug("your text here")  for your debug text.
> Good luck.
> 
> import mx.events.*;
> import mx.containers.*;
> import mx.controls.*;
> import mx.managers.PopUpManager;
> 
> private var _window:TitleWindow;
> private var debugText:TextArea = new TextArea();
> private function showWindow():void {
>       debugText.height = 600;
>       debugText.width= 400;
>       _window = TitleWindow(PopUpManager.createPopUp(this, 
> TitleWindow));
>       _window.addChild(debugText);
>       _window.showCloseButton = true; 
>       _window.addEventListener(CloseEvent.CLOSE,closeHandler);
> }
> public function debug(str:String):void {
>       if (debugText.text.length > 1000)
>               debugText.text = "";
>       debugText.text += str;
> }
> private function closeHandler(event:CloseEvent):void {
>       PopUpManager.removePopUp(_window);
> }

I think the problem is with the DisplayList itself, since other 
objects are failing to appear, even though everything looks OK and no 
errors are being thrown.  I believe that the problem with the Alert 
is related to whatever has thrown the display list into a tizzy.  So 
I'm thinking anything else trying to draw to the screen will fail in 
the same way.  I've figured out how to get the problem to happen 
outside the wrapper, so I'm tracking it down that way.

Thanks :-)

-Amy

Reply via email to