|
Don't create the class. The PopUpManager
creates it for you.
var tw = PopUpManager.createPopUp (
Application.application as DisplayObject, TitleWindow, true);
var txt:Label = new Label();
txt.text = "This is a test.";
tw.addChild(txt);
----- Original Message -----
From: Doug Arthur
Sent: Tuesday, August 01, 2006 9:09 AM
Subject: Re: [flexcoders] PopUp from within a class Yes, I've dealt with PopUp's plenty of times, but the problem is while I'm
within a class object, it will not let me reference the document. I've tried
using "this", and it does not work. this.parent is null. The only thing I've
found to work now is the following:
var tw:TitleWindow =
new
TitleWindow();
tw.title = 'Test Window...'; var txt:Label = new Label(); txt.text = 'THIS IS A TEST'; tw.addChild(txt); PopUpManager.addPopUp(tw, Application.application as DisplayObject, true); I'm not sure if there is any other way though...?
Thanks!
On 7/31/06, Martina
Smith <[EMAIL PROTECTED]>
wrote:
__._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- Re: [flexcoders] PopUp from within a class JesterXL
- Re: [flexcoders] PopUp from within a class Doug Arthur
- RE: [flexcoders] PopUp from within a class Tracy Spratt
- Re: [flexcoders] PopUp from within a class Doug Arthur
- Re: [flexcoders] PopUp from within a class Doug Arthur
- [flexcoders] Re: PopUp from within a class Doug Lowder

