1 Reply Latest reply on Apr 14, 2011 6:26 AM by OZDD

    Opening a popup window with fade effect

    Ameya Mogare Level 1



      I have a scenario where I want to open a pop up title window with some nice effect.

      Can you please suggest how do I achieve it?


      I have a repeater that repeats set of Text UI comps and I want to show a pop up window on MouseOver or MouseClick of each of these Text UI comps.


      Please help.


      Thank you,


        • 1. Re: Opening a popup window with fade effect

          if you want to open an title Window with a smooth fade effect there are more than one possible ways.


          1. Declare Fade Effect


               <s:Fade id="windowFade" target="{_titleWindow}" alphaFrom="0.0" alphaTo="1.0" />


          2. Execute the fade effect on openening

               2.1 start the effect after the PopUpManager.addPopUp


               PopUpManager.addPopUp(_titleWindow, this);


               2.2 start the effect on added-Event


               protected function titlewindow1_addedHandler(event:Event):void




          3. Make sure the effect is stopped before you start the animation with windowFade.stop()