Hi,
I have a function called by an interval which is working just fine but I can’t seem to reference the instance outside of this function
Here is my code
var myInterval:Number = setInterval(this, “my_function”, 1500);
function my_function():Void {
myLevel++;
attachMovie(“my_mc”,“my_mc”+myLevel,myLevel);
this[“my_mc”+myLevel]._x = 400;
}
and this is what I am trying to do with it in another function but it doesn’t work.
if (this[“my_mc”+myLevel].hitTest(_root.my_hit_area)) {
// do something here
}
If anyone knows how I can pick up on the instances of the movie clip in this hit test function I would really appreciate it.
Thanks