0 Replies Latest reply on Feb 11, 2010 5:07 AM by fagagou

    How to make a fade effect on the application lauch

    fagagou

      Hy,

       

      i want that my desktop app appear with a fade effect when it starts. This is my code but it doesn't work

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"                              
                                 
      usePreloader="false"
                                 
      mouseDown="stage.nativewindow.startMove()"
                                 
      layout="absolute"
                                 
      width="304"
                                 
      height="527"
                                 
      alpha="0"
                                 
      creationComplete="init()">

             
      <mx:Script>
                      <![CDATA[
                         
                             
                              private function init():void
                              {
                                      application.setStyle("showEffect",fade)        
                              }
             
                      ]]>
             
      </mx:Script>

             
      <mx:Fade id="fade" duration="1000" />

             
      </mx:Application>