This content has been marked as final. Show 5 replies
"yourMovieClipName.removeMovieClip();" is the correct syntax, I believe. If that doesn't work, try "_root[yourMovieClipName].removeMovieClip();". Hope that helps.
The correct syntax would be:
If the scope is the clip you want to remove. And if the code is inside an onEnterFrame function that is defined something like:
then that would be the correct syntax.
Of course how you use the code to decide that the clip should be removed could be the problem. If you have something like
You might be surprised that it never actually hits 10. Try it. You can't set an _alpha of 10. (Okay, you can set it, but the value won't be 10!)
So if you aren't already, try using an inequality.
or whatever values you need.
Oh I just thought of one other thing. Are you using components? And when you attachMovie() are you using getNextHighestDepth()?
If you are, then stop that!
lol, rothrock. i think i'm going to refer to this issue as the 1048575+ issue.
Thanks for all the help. Interestingly, it's still a no-go.
I don't use getNextHighestDepth. Instead, I use a _root.CurrLevel which I increment and manage on my own. I do catch the alpha by using if(this._alpha <= 0)
The script is in an .as file so, I guess essentially, the script is "on" the movieClip itself. I've tried all sorts of variations on the removeMovieClip configuration.
Interestingly, I have other similar movies that use the same logic and those clips vanish just fine. <boggle>