Hey guys, im trying to grab the instance name of something on stage, set it to a variable then remove it.
iv tried:
Actionscript Code:
var something = object1
something.removeMovieClip();
that works. problem is im setting variables at runtime depending on a user click.
tried this too..
Actionscript Code:
var myvar;
object1.onRelease = function() {
myvar = this._name;
}
tracing this out reveals that it is actually _level0.object1.
also tried adding the string "_level0." + object1. still dosen' work.
what im trying to do is click on objects. store there instance names into an array then remove them all when i do something else. such as press space.
Thanks,
Steve,