0 Replies Latest reply on Oct 11, 2006 12:08 PM by Newsgroup_User

    getNextHighestDepth() and removeMovieClip() problem

    Level 7
      This is a multi-part message in MIME format.

      ------=_NextPart_000_0009_01C6ED81.D7D1E8E0
      Content-Type: text/plain;
      charset="iso-8859-9"
      Content-Transfer-Encoding: quoted-printable

      hi,

      I have a strange problem :

      I attach a Mc from library to Scene like this :

      var mc : MovieClip =3D _root.attachMovie ("mcLinkage", =
      "mc1",_root.getNextHighestDepth() ,=20
      {
      _visible : false
      });

      and then i try to remove it by=20

      removeMovieClip(_root.mc1);

      and, mc is doesnt removed.=20

      but if i give a level number instead of getNextHighestDepth(), mc is =
      able to removed.=20

      any succestion about this stuation?

      regards.
      Burak

      ------=_NextPart_000_0009_01C6ED81.D7D1E8E0
      Content-Type: text/html;
      charset="iso-8859-9"
      Content-Transfer-Encoding: quoted-printable

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <HTML><HEAD>
      <META http-equiv=3DContent-Type content=3D"text/html; =
      charset=3Diso-8859-9">
      <META content=3D"MSHTML 6.00.5346.5" name=3DGENERATOR>
      <STYLE></STYLE>
      </HEAD>
      <BODY>
      <DIV><FONT face=3DArial size=3D2>hi,</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial size=3D2>I have a strange problem :</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial size=3D2>I attach a Mc from library to Scene =
      like this=20
      :</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial size=3D2><FONT =
      color=3D#008080> </FONT><FONT=20
      face=3D"Courier New" color=3D#008080>var mc : MovieClip =3D =
      _root.attachMovie=20
      ("mcLinkage", "mc1<STRONG>",_root.getNextHighestDepth()</STRONG> ,=20
      <BR> {<BR>  _visible : =
      false<BR> });</FONT></FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial size=3D2>and then i try to remove it by =
      </FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3D"Courier New" =
      size=3D2>removeMovieClip(_root.mc1);</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial size=3D2>and, mc is doesnt removed. =
      </FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial size=3D2>but <STRONG><FONT color=3D#800000>if i =
      give a level=20
      number instead of <FONT=20
      face=3D"Courier New">getNextHighestDepth()</FONT></FONT>,</STRONG> mc is =
      able to=20
      removed. </FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial size=3D2>any succestion about this =
      stuation?</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial =
      size=3D2>regards.<BR>Burak<BR></FONT></DIV></BODY></HTML>

      ------=_NextPart_000_0009_01C6ED81.D7D1E8E0--