When I need to create a popup from a non-UI class, I usually call PopUpManager.createPopup() and I use FlexGlobals.topLevelApplication as the parent parameter. Pass your Skinnable container as the ClassName. Like this:
var pop:SkinnableContainer = PopUpManager.createPopUp( FlexGlobals.topLevelApplication as DisplayObject, SkinnableContainer, true) as SkinnableContainer; PopUpManager.centerPopUp(pop); Jesse On Dec 10, 2013, at 5:13 PM, Mark Fuqua <[email protected]> wrote: > Just an FYI, for some reason, when you click on the links below, you'll have > to add the .png as it is not part of the link somehow... > > Mark > > -----Original Message----- > From: Mark Fuqua [mailto:[email protected]] > Sent: Tuesday, December 10, 2013 8:06 PM > To: [email protected] > Subject: popup from actionscript class > > Sorry for the noob question, I really have spent quite a bit of time trying > to figure this out.so even the right LMGTFY.com link would be helpful J. > > > > I have several Actionscript Classes in a package separate from my views > package.I have event listeners waiting for fault events from remoteObject > calls. When the remoteObject fails, I want to have a popup alert the user > with the error message. How do I get this to work? These remoteObject > calls will be made (usually) in response to a timer event, not from a > view.so I can't figure out where to put the popup or how to call it. > > > > If I create a popup Skinnable container, where do I place it? > > > > Here is a screenshot showing my folder structure and the event listener [1]. > > > > Here is another screenshop showing an actionscript class used for working > with SQLite database.lots of these 'try/catch' blocks.I would like to send > the error messages to the popup as well.is it the same process? [2]. > > > > > > > > [1] > https://www.dropbox.com/s/jdq9cxqmlrq0jcs/Screenshot%202013-12-10%2019.55.42 > .png > > > > [2] > https://www.dropbox.com/s/3nkswgnlalt5ngb/Screenshot%202013-12-10%2019.56.38 > .png > > > > Thanks for your help. > > > > > > Mark Fuqua > > > > [email protected] > > > > 2301 Mount Carmel Road > > Parkton, MD 21120 > > (410) 215-7356 > > > > www.availdata.com > > > > >
