Having popup style like an Alert.show
November 1st, 2009 |
|
0 Comments »
Question:
I have a custome popup which works great however I would like the same effect as the Alert.Show when I open it. Meaning I would like the area around the popup to be blurry and shaded.
How can I do that?
Solution:
Oh, I did not know if you were on Flex…
Hm… You probably will need to create a custom component for that that includes the transparent box down below and the alert box…
But you will need to draw the box like this…
CyanBlue
var box:Sprite = new Sprite();
box.graphics.beginFill(0×0000FF, 0.25);
box.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
box.graphics.endFill();
addChild(box);
box.mouseEnabled = true;













Comments (0)
Trackbacks - Pingbacks (0)
Leave a Reply