3 Replies Latest reply on Sep 10, 2006 3:55 PM by kglad

    I have a problem with including for a swf file

    flo_fluffy
      Hello,
      I'm a new user in the forum and my problem is to the include by swf file.
      The file is correctly included, but the action acript code would not carried out.
      Can you help me?

      the code:
      fl.getDocumentDOM().library.importEmbeddedSWF("swf/start.swf", swfData, "Intro");


      or here:
      rahmen_mc1.loadMovieNum("swf/start.flv", _Level3);


      the action script won't carried out by the loaded swf file.
      Sorry for the english correctness.

      thank you for your held.

        • 1. Re: I have a problem with including for a swf file
          Level 7
          Hi!

          I assume you do have the file in your folder but it is not loaded, am I
          right?
          Try simple loadMovie-Code like one of this:

          loadMovieNum("swf/start.swf", _Level3);
          (note that you tried start.flv and start.swf, which one do you need?)
          loads the movie start.swf at the Level 3. Try this first. In this case
          "start.swf" is just placed on Top of your normal movie and stays there
          until unloaded.

          loadMovie("swf/start.swf", "rahmen_mc1");
          loads the movie in the MC "rahmen_mc1" (which is replaced by the movie).
          So here you must have a MC called "rahmen_mc1" visible on the frame
          where your ActionScript is executed. When you don't have that MC
          correctly named, it will not work. Also when jumping to a picture where
          you do not have that MC, "start.swf" will disappear again.

          Hope I understood right and this helps

          greetings from munich
          oe

          flo_fluffy wrote:
          > Hello,
          > I'm a new user in the forum and my problem is to the include by swf file.
          > The file is correctly included, but the action acript code would not carried
          > out.
          > Can you help me?
          >
          > the code:
          > fl.getDocumentDOM().library.importEmbeddedSWF("swf/start.swf", swfData,
          > "Intro");
          >
          >
          > or here:
          > rahmen_mc1.loadMovieNum("swf/start.flv", _Level3);
          >
          >
          > the action script won't carried out by the loaded swf file.
          > Sorry for the english correctness.
          >
          > thank you for your held.
          >
          >
          >
          • 2. Re: I have a problem with including for a swf file
            flo_fluffy Level 1
            I have tried but not succsesful:

            by the code:

            loadMovieNum("swf/start.swf", _Level3); loadMovieNum("swf/start.swf", _Level2.rahmen_mc1);

            --> if I clicked of the button and the code is started. The swf be carried out but it started a new browser and it load here the swf file.
            And also .swf or .mov or .flv is started in a new browser. If also by _Level3 or_Level2 or rahmen_mc1.



            and by the code:
            loadMovie("swf/start.swf", _Level3);
            // is not started the application

            What is my misstake?
            • 3. Re: I have a problem with including for a swf file
              kglad Adobe Community Professional & MVP
              that's not the correct way to use loadMovieNum. and you should use lower case in _level: