1 Reply Latest reply on Jun 4, 2009 7:39 AM by kglad

    swf file calls another swf file

    wuzhishan

      I have a flash movie which should plays the second swf(intro_community.swf) when it finishes but when it plays by itself, it doesn't call the second swf file to play, but when it launchs from a button

      (on (release) {

      loader_mc.loadMovie("intro.swf");
      }

      the swf calls the second swf to play.

      The following is the code for first swf calls the second swf to play:

      stop();
      //when video finish, load external swf
      var vidList : Object = new Object();
      vidList.complete = function() {
      _root.loader_mc.loadMovie("intro_community.swf");
      }
      flv_welcome.addEventListener ("complete",vidList);

       

      My question is:

      How to make the swf calls the other swf to play when it launches by itself?

       

      Any help will be graciously appreciated

        • 1. Re: swf file calls another swf file
          kglad Adobe Community Professional & MVP
          is the button with the following code a true button or a movieclip button?

          (on (release) {

          loader_mc.loadMovie("intro.swf");
          }


          if it's a true button, is loader_mc on that button placed on the _root timeline?  if not, fix your path in

           

          _root.loader_mc.loadMovie("intro_community.swf");

           

          if yes, your "intro_community.swf" doesn't exist