Question : remove mc in as2  -easy points I'm sure

I need to remove these of the stage... what is the best way to do it...

this didn't seem to work

_level0.myButton0.removeMovieClip();

Thanks jeremy



 Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = Cover"
  Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = <<"
  Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = 0-1"
  Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = 2-3"
  Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = 4-5"
  Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = 6-7"
  Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = 8-9"
  Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = >>"
  Movie Clip: Frame=0 Target="_level0.myButton0"
    Movie Clip: Frame=0 Target="_level0.myButton0.buttonBkg"
    Edit Text: Target="_level0.myButton0.labelText" Variable= Visible=true Text = Back"

Answer : remove mc in as2  -easy points I'm sure

it is...


for (var i in _root)
{
if (typeof (this[i]) == "movieclip")
{
      if (this[i]._name == "myButton0"){
            removeMovieClip(this[i]._name);
      }
}
}
Random Solutions  
 
programming4us programming4us