1 Reply Latest reply on Feb 15, 2010 9:06 AM by marco.rossi

    How to add a fade effect to the Application object ?

    fagagou

      Hy,

       

      i want to add a fade effect to the Application object, but my code does not work, can you take a look please:

       

      <?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>

      Thanks