Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
zhack
Posts: 13
Registered: ‎01-18-2011
My Device: bold 9000
My Carrier: telkomsel
Accepted Solution

PopUp Manager

Hi all got another question here :smileyhappy:

 

any1 using pop up manager b4?

 

just curios how u make them close when u click the blur zone?

pop.JPG

as we know when popup manager activate, the screen around it will become blur and unclickable

 

thanks :smileyhappy:

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: PopUp Manager

You cant.  There is no place to add an event listener to that area.  You might be able to add an event to your dialog when it loses focus and then dismiss the dialog.  However, that might be problematic since moving from one control to another will likely activate that event.  The simplest is to have a close button on the dialog.

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: PopUp Manager

I do this by creating a Sprite that covers the whole page, making sure it's lower in the Z order than my popup.  It can be completely transparent, or translucent, but the key is to actually draw something in it... I just do a graphics.drawRect() of the full size after doing graphics.beginFill(0, 0).  Note that latter... alpha 0.  Even with that, the Sprite will intercept mouse clicks.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Contributor
zhack
Posts: 13
Registered: ‎01-18-2011
My Device: bold 9000
My Carrier: telkomsel

Re: PopUp Manager

thanks 4 the reply

 

i think im gonna stick with label close event :smileyhappy:

 

although close button seems tempting, but all i  know that its must use TitleWindows which gonna be huge problem if i combine with Httpservice

 

thanks again, this forum really help me alot :smileyvery-happy:

Please use plain text.