The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control).
An example usage would be to make sure the user completes an operation before navigating somewhere else or performing a conflicting action. Also, it would focus the user on what portion of the screen is relevant at the moment. Shaun --- In [email protected], "Merrill, Jason" <[EMAIL PROTECTED]> wrote: > > I don't know as much about Flex architecture yet - just the basics, but > I know in Flash 8 the PopupWindow component, when not enabled, is > completely modal. I used that a lot for achieving modal windows. Don't > know if that helps any in this case... I know you're looking to make > your own component model - perhaps you could extend a Flex modal > component like the PopupWindow? > > > Jason Merrill > Bank of America > GT&O Learning & Leadership Development > eTools & Multimedia Team > > > > > > ________________________________ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway > Sent: Friday, March 30, 2007 11:13 AM > To: [email protected] > Subject: Re: [flexcoders] Re: Make a component 'modal' > > > > I personally don't know how this would be done, but that doesnt > mean it can't. > > > On 30 Mar 2007 08:08:29 -0700, Shaun < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > wrote: > > That would work, but it would only disable controls, not > give the > greyed out look to the rest of the screen, like the > popups do. I > suppose I could do like you say, but instead have the > style changed > for the other components... > > but I'm really hoping there's some way to create a magic > function > like: > > public static function > strongFocus(control:DisplayObject):void > { > ... > } > > that I can call from anywhere and it will grey out and > disable mouse > interaction with everything on the stage but the control > passed in. > > Am I hoping for too much? > > --- In [email protected] > <mailto:flexcoders%40yahoogroups.com> , "Clint Tredway" <grumpee@> > wrote: > > > > without seeing how you setup your code, here is my > suggestion. > > > > Set the parent containers of the other 'components' > enabled > attribute to a > > bindable var or even a state, and then when that > specific button is > clicked, > > set the var to false or in the case of using states, > just change > the state. > > Either way, that should accomplish what you are > describing. > > > > HTH, > > Clint > > > > On 30 Mar 2007 07:36:17 -0700, Shaun > <sthalberstadt@> wrote: > > > > > > Is there any way to make a component modal/hilight > it? I would > like to > > > be able to gray out (like when a popup is shown) > everything on the > > > screen but a certain component when the user click > on a specific > button. > > > > > > Basically I want a popup that's not a popup, but > rather sets the > focus > > > on a particular component that is already in the > displaylist. > > > > > > Thoughts on the best way to acheive this? > > > > > > Thanks, > > > Shaun > > > > > > > > > > > > > > > > > -- > > I am not a diabetic, I have diabetes > > my blog - http://grumpee.instantspot.com/blog > <http://grumpee.instantspot.com/blog> > > > > > > > > > > > -- > I am not a diabetic, I have diabetes > my blog - http://grumpee.instantspot.com/blog > <http://grumpee.instantspot.com/blog> >

