Anthony Merryfield wrote:
I have a few popup forms that I'd like to give more emphasis to. I think I saw somewhere a site where on popup the parent grayed out making the popup very noticable - could anyone point me towards some code in order to accomplish this please?

I just put my whole app in a VBox and fade it when the window pops up (maybe in the creationComplete of the window).


<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
<mx:VBox id="mainBox" width="100%" height="100%" backgroundColor="white">
<mx:DateChooser />
<mx:Button label="Popup" click="showPopUp()" />
</mx:VBox>

<mx:Script>
import mx.effects.Fade;

function showPopUp()
{
alert("I need more attention.");

var eff:Fade = new Fade(mainBox);
eff.alphaFrom = 100;
eff.alphaTo = 50;
eff.duration = 1000;
eff.playEffect();
}
</mx:Script>
</mx:Application>

Manish




Reply via email to