• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 414
  • Last Modified:

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"
0
jeremyBass26
Asked:
jeremyBass26
  • 3
2 Solutions
 
slovisaCommented:
Shouldn't it be
removeMovieClip(_level0.myButton0);
??
0
 
jeremyBass26Author Commented:
Sorry that didn't work either... just tried
0
 
jeremyBass26Author Commented:
if you wish to see the whole script it's located here along with a file...

http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_24300550.html#a24234194
0
 
jeremyBass26Author Commented:
it is...


for (var i in _root)
{
if (typeof (this[i]) == "movieclip")
{
      if (this[i]._name == "myButton0"){
            removeMovieClip(this[i]._name);
      }
}
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now