2 Replies Latest reply on Nov 23, 2010 12:37 PM by jpalombo

    How can I make my external loaded .SWF file smoothly disappear after 15 seconds?

    learner_7n Level 1

      Hi,

       

      How can I make my external loaded .SWF file smoothly disappear after 15 seconds? The following is the code to load an external .SWF file:

       

      var K:Loader=new Loader();

      addChild(K);

       

      K.load(new URLRequest("clock.swf"));
      K.x = 165;
      K.y = 247;

       

      K.contentLoaderInfo.addEventListener(Event.INIT, growLoader);

       

      function growLoader(evt:Event):void {

       

           K.width = 130;

       

           K.height = 130;
      }

       

      I want to make clock.swf file disappear from the page after 15 seconds using some smooth disappear effect.

       

      Please help.

       

      Thanks.