1 Reply Latest reply on Dec 14, 2010 5:46 AM by Ned Murphy

    How can I bring my external .SWF movie on stage after 20 seconds?

    learner_7n Level 1



      I am loading .SWF movie on stage using the following code which is fine. But I wnat this .SWF movie to come on stage after 20 seconds. How can I modify the code to achieve the same.


      The following is the code:


      var K:Loader=new Loader();




      K.load(new URLRequest("clock.swf"));
      K.x = 160;
      K.y = 200;


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


      function growLoader(evt:Event):void {


      K.width = 130;


      K.height = 130;


      Thanks for any help.