3 Replies Latest reply on Jan 1, 2007 5:47 PM by kglad

    should work?

    jonnybennett Level 1
      Firtsly happy new year to all those helpful forum responders, you know who you are.
      Secondly can you help?

      I have an m.c.onRelease that attachs a movie clip and one that removes that movie clip. They work fine, however I want to be able to put all the actions into the one onRelease... eg..

      viewBtn.onRelease=function(){
      removeMovieClip(_parent.slideshowAttach);
      parentTimeline=_parent;
      slideShowClip=_parent.attachMovie('slideshowAttach','slideshowAttach',_global.nIndex++);
      parentTimeline["slideshowAttach"].slideName=slidename.text;
      parentTimeline["slideshowAttach"].slideImageDetails=slideimages.text;
      parentTimeline["slideshowAttach"].slideCaptionDetails=slidecaptions.text;
      parentTimeline["slideshowAttach"].slideType=slidetype.text;}

      removeBtn.onRelease=function(){
      removeMovieClip(_parent.slideshowAttach);}

      However when you add the removeMovieClip to the viewBtn thus not needing removeBtn it causes errors doesn't work. However if it works with the two buttons surely as long as as long as the previously attached m.c. is removed before the new one is attached it should work. Anyway any ideas? I have tried giving the attached m.c. diff names but this also does not work?