This content has been marked as final. Show 5 replies
To use a string to target an object, use the bracket/array notation...
Thanks for you answer. My next question is how do I combine that with bob.removeMovieClip()?
I have rarely used ActionScript and was asked for help from a friend. I'm learning on the fly.
removeMovieClip has often been a challenge for me to try to implement by trying to comprehend it. I usually just attack it until I get the results... so try a couple or more until it works...
The most important aspect of using removeMovieClip is that it can only remove objects that were added dynamically.
Thanks. The movie was added dynamically. My next question is how to use that with attachMovie. What I have now is:
What is want is a way to substitute a string I can use with a counter variable for "rock2" such as "rock" + counter.
It turns out, I solved my own issue. I feel a bit foolish. Thanks for your help!