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

    Opening a popup window with fade effect

    Ameya Mogare Level 1

      Hi,

       

      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,

      Amey

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

          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);
               windowFade.play();

           

               2.2 start the effect on added-Event

           

               protected function titlewindow1_addedHandler(event:Event):void
               {

                    windowFade.play();

               }

           

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