yep, that did it... what I was missing was the 'as Application' part :(
I tried: var topApp:Application = Application.application; but that set topApp as null... really weird, no compile error, just did not work. adding the as Application qualifier fixed it. I wonder why? thanks anyway, julio --- In [email protected], Jeffry Houser <[EMAIL PROTECTED]> wrote: > > > Look at > mx.core.Application > > Off the top of my head the code to get the top level application is: > > var topApp : Application = Application.application as Application > > > fourctv wrote: > > > > > > I have an AS3 standalone class (does not inherit from any other class). > > > > I want to show a popup window from inside that class using PopupManager > > addPopup (or > > createPopup). Problem is that both methods require an iDisplayContainer > > class to indicate > > where to append the popup to. > > > > Is there any static property/function that would give me my application > > container (any > > container on the stage will do). > > > > Something like Application.application would be perfect, but unfortunately > > Application.application is not available for that class (at least not > > with 2.0.1). > > > > I've browsed thru all classes but could not find anything to help. > > > > For now I'm passing (this or Application.application) as an argument to > > the class constructor > > so it can be used later to instantiate the Popup. > > > > Any help or pointer is mostly appreciated. > > TIA > > julio > > > > > > -- > Jeffry Houser, Technical Entrepreneur, Software Developer, Author, > Recording Engineer > AIM: Reboog711 | Phone: 1-203-379-0773 > -- > My Company: <http://www.dot-com-it.com> > My Podcast: <http://www.theflexshow.com> > My Blog: <http://www.jeffryhouser.com> >
