4 Replies Latest reply on Dec 10, 2007 12:46 PM by CenturyMan1979

    AS3 Delete MC Question

    CenturyMan1979
      Hello everyone,

      I have in my library a movie clip with a linkage ID of Win_Video which I am letting flash export the class for it. Inside of the movie clip I have a flvplayback component that has a set path for a video. I also have a "X" in the upper right to close the window. Here is the code I use to display the window in the center of the screen,

      var new_win:MovieClip = new Win_Video();
      new_win.x = sx;
      new_win.y = sy;
      addChild(new_win);

      The issue comes when trying to remove the movie clip from the screen. Here is the code I have been trying,

      removeChild(new_win);

      this seems to work as the window will disappear but you can still here the video playing so I am guessing it is not actually gone. What am I missing?