2 Replies Latest reply on Nov 27, 2006 8:00 PM by jonnybennett

    bizzare refrenceing:

    jonnybennett Level 1
      Okay I have a function...

      function selectionMade(){
      if(selcetedText.text=='exit'){
      _parent.removeMovieClip('_parent.editPictures');}
      if(selcetedText.text=='preview'){
      _parent._parent.attachPrePictures();}
      }

      1/ When the funciton is executed if the selcetedText.text=='preview' then the function _parent._parent.attachPrePictures(); should be executed, however it does not. However if you convert this '_parent._parent.attachPrePictures()' function to an onRelease function and place an instance of it on the stage, then the function will exectue using.... _parent._parent.attachPrePictures.onRelease();
      why is this?

      2/ When the function is executed if the selcetedText.text=='exit' then the m.c. editPictures is removed. However it is only removed if I reference it as......
      _parent.removeMovieClip('_parent.editPictures');
      .... why does......
      removeMovieClip('_parent._parent.editPictures');
      ...or....
      _parent._parent.removeMovieClip('editPictures');
      ......not work.


      Please could someone explain these to me, many thanks Jonnie.