0 Replies Latest reply on Aug 31, 2010 5:19 AM by creepbug

    PopUpManager pop and effect the same panel twice, meet some error

    creepbug

      here is the code:

       

         PopUpManager.addPopUp(window, parent, modal, childList);
        
         if(mShowEffect == null)
         {
                   mShowEffect = new Dissolve();  
                   mShowEffect.alphaFrom = 0.0;
                   mShowEffect.alphaTo=1.0;
                   mShowEffect.duration=600;
                   mShowEffect.addEventListener(TweenEvent.TWEEN_END,showOver);
         }
         mShowEffect.end();
                  mShowEffect.target=window;  
                 
         var arr:Array = mShowEffect.play();
         for(var t:* in arr)
         {
                   mShowEffect.deleteInstance(arr[t]);
         }

       

      When the window call this function twice, it do not effect as the first time!

       

      I do not know whether the effect can do the same thing at the same window twice?