9 Replies Latest reply on Feb 23, 2010 12:57 PM by timmaciejewski123

    newbie, please help--swf files work fine separately, don't work when on same page

    timmaciejewski123

      Hello all,

      I am new to flash, and piecing together different templates to try and  learn things.

      I have run across a strange problem. When I load products2.swf by  itself, I can call the two "copy" files and everything works. When I  open 0342.swf (the index page), I can switch between the home and  products2 pages, but I can't view the "copy" pages.

      I'm guessing there may be some sort of conflict with variable names,  but I have been messing with it for most of today.
      I have uploaded all of the FLA files to here:
      http://littlebuddymedia.com/flashhelp.zip
      If you make an swf file out of each of the attached items, and open  the 0342 file, you will see what is supposed to be happening.
      Any help anyone can offer is greatly appreciated.

      Below is the code from each relevant button in case that is easier for  some of you.

      Thank you in advance!


      *****
      From the 0342 page (the index page)
      My "Home" button
      ---------
      on (release) {

      if (_root.currMovie == undefined) {

      _root.currMovie = "home";
      _root.container.loadMovie("home.swf");
      } else if (_root.currMovie != "home") {
      if (_root.container._currentframe >= container.midframe) {

      _root.currMovie = "home";
      _root.container.play();

      }

      }

      }
      ----------

      My "Products" button
      ----------
      on (release) {

      if (_root.currMovie == undefined) {

      _root.currMovie = "products";
      _root.container.loadMovie("products.swf");
      } else if (_root.currMovie != "products") {
      if (_root.container._currentframe >= container.midframe) {

      _root.currMovie = "products";
      _root.container.play();

      }

      }

      }

      ******************
      FROM THE PRODUCTS2 page

      My "copywebdev" button
      --------------------
      on (release) {

      if (_root.currMovie == undefined) {

      _root.currMovie = "copywebdev";
      _root.copycontainer.loadMovie("copywebdev.swf");
      } else if (_root.currMovie != "copywebdev") {
      if (_root.copycontainer._currentframe >= container.midframe) {

      _root.currMovie = "copywebdev";
      _root.copycontainer.play();

      }

      }

      }



      My "officetech" button
      ----------------------------
      on (release) {

      if (_root.currMovie == undefined) {

      _root.currMovie = "copyworktech";
      _root.copycontainer.loadMovie("copyworktech.swf");
      } else if (_root.currMovie != "copyworktech") {
      if (_root.copycontainer._currentframe >= copycontainer.midframe) {

      _root.currMovie = "copyworktech";
      _root.copycontainer.play();

      }

      }

      }