Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Clint Tredway

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] 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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 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


 





--
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog


RE: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Merrill, Jason
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  
GTO Learning  Leadership Development 
eTools  Multimedia Team 


 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway
Sent: Friday, March 30, 2007 11:13 AM
To: flexcoders@yahoogroups.com
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 flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , 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
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  



 



Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Clint Tredway

99% of what you want to do can be accomplished, the only thing that i see is
the blur effect that you want. I am sure it can be done, but it will not be
an easy task.

If most of what the user has to do is entering data into forms you can use
the built in validators to 'highlight' invalid entries.

On 30 Mar 2007 08:39:29 -0700, Shaun [EMAIL PROTECTED] wrote:


  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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
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
 GTO Learning  Leadership Development
 eTools  Multimedia Team





 

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of Clint Tredway
 Sent: Friday, March 30, 2007 11:13 AM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 mailto:flexcoders% flexcoders%2540yahoogroups.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


 





--
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog


Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Tom Chiverton
On Friday 30 Mar 2007, Shaun wrote:
 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).

Hmm.
You could create partly opaque rectangles over the rest of the screen, for 
instance ?

-- 
Tom Chiverton
Helping to synergistically revolutionize intuitive solutions
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Doug McCune

another option would be to remove the component from the displaylist, swap
in a spacer component that was the same size, then use the PopUpManager to
redisplay your component, place it in the exact pixel location it was before
and make it a modal popup. Then when you want to give focus back to the
entire app you swap it back into the displaylist of whatever container it
was originally in. Not sure how well this would work, but in theory if you
calculate the pixel values exactly, the user might not notice anything's
happening.

Doug

On 3/30/07, Shaun [EMAIL PROTECTED] wrote:


  Hmm, now that's an idea... a little bit of a hack, but I'm ok with
simplicity over elegance to start with. I think I'll head down that
path unless someone throws out another (more) brilliant solution :)

Thanks for the help guys.

Shaun

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom
Chiverton [EMAIL PROTECTED]

wrote:

 On Friday 30 Mar 2007, Shaun wrote:
  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).

 Hmm.
 You could create partly opaque rectangles over the rest of the
screen, for
 instance ?

 --
 Tom Chiverton
 Helping to synergistically revolutionize intuitive solutions
 on: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2
2JF. A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP
means a member of Halliwells LLP. Regulated by the Law Society.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named
above and may be confidential or legally privileged. If you are not
the addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.

 For more information about Halliwells LLP visit www.halliwells.com.


 



Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread John Mark Hawley
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: flexcoders@yahoogroups.com
 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 flexcoders@yahoogroups.com, 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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Alex Harui
You could popup a copy of the component over the component in question. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Mark Hawley
Sent: Friday, March 30, 2007 10:22 AM
To: flexcoders@yahoogroups.com
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: flexcoders@yahoogroups.com
 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 flexcoders@yahoogroups.com, 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





RE: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Tracy Spratt
Maybe investigate how the popups create the blur efffect?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shaun
Sent: Friday, March 30, 2007 10:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Make a component 'modal'

 

Hmm, now that's an idea... a little bit of a hack, but I'm ok with 
simplicity over elegance to start with. I think I'll head down that 
path unless someone throws out another (more) brilliant solution :)

Thanks for the help guys.

Shaun

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Friday 30 Mar 2007, Shaun wrote:
  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).
 
 Hmm.
 You could create partly opaque rectangles over the rest of the 
screen, for 
 instance ?
 
 -- 
 Tom Chiverton
 Helping to synergistically revolutionize intuitive solutions
 on: http://thefalken.livejournal.com
http://thefalken.livejournal.com 
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF. A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged. If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.