• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • 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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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