1 Reply Latest reply on Jun 25, 2010 1:08 AM by selangov

    Actionscript 3 code to start & stop at certain timing?

    learner_7n Level 1

      Hi,

       

      How can I write the Actionscript3 code if I want to start MyLogo 5 seconds after loading my webpage and then stop for 1minute and loop in the same manner.

       

      Any help would be appreciated.

       

      The following is the code right on my Actions_Layer:

       

      var l:Loader=new Loader();
      addChild(l);
      l.load(new URLRequest("MyLogo.swf"));
      l.x = 17;
      l.y = 60;

       

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

       

      function growLoader(evt:Event):void {
           l.width = 320;
           l.height = 185;
      }

       

      Thanks.