0 Replies Latest reply on Jun 19, 2007 11:59 AM by Magiciandude

    Need Assistance Duplicate Movie Clip Problem

    Magiciandude
      Okay, Here is my problem:
      First of all, I have a movie that loads an external SWF that contains several frames(each of a different "module" for a product)
      Each of these modules is named "module" plus the frame number(on frame one its "module1")

      So in the other movie that loads this one, I used the script to load it:
      var moduleloader:MovieClipLoader = new MovieClipLoader();
      moduleloader.loadClip("PLCbuildermodules.swf",_root.modules);

      So...on the actual movie clip(named "modules") I added this script:
      on(press){
      modulename = eval("module"+_root.modules._currentframe);
      if(this._name=="modules"){
      i++;
      duplicateMovieClip(modulename,"modulenew"+i, this.getNextHighestDepth())
      startDrag(modulename,true);
      }
      }

      Now the problem is basically that when you duplicate it, it drags fine like its supposed to...but when you click again, it duplicates again. I tried to counteract this with the if(this._name=="modules"){ script, but with no success...

      I'm pretty sure that the problem is that the movie clip is being duplicated within the parent movie clip. I just can't figure out how to duplicate it OUTSIDE of the parent movie clip!

      I would be grateful of ANY help!!!

      Thanks in advance!

      -Chris

      ---EDIT---

      Sorry about the double post...that was an accident...