You could popup a copy of the component over the component in question. 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of John Mark Hawley
Sent: Friday, March 30, 2007 10:22 AM
To: [email protected]
Subject: Re: [flexcoders] Re: Make a component 'modal'

You could try temporarily reparenting the "strong focused" component so
it was over everything else in the displayList,  then drop a big
translucent grey box behind it, set to intercept mouse clicks. That
sounds like it should work, eh?

-Mark Hawley

> 
> From: "Shaun" <[EMAIL PROTECTED]>
> Date: 2007/03/30 Fri AM 09:08:29 CST
> To: [email protected]
> Subject: [flexcoders] Re: Make a component 'modal'
> 
> 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], "Clint Tredway" <[EMAIL PROTECTED]>
> 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 <[EMAIL PROTECTED]> 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
> >
> 
> 
> 
> 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



Reply via email to