After all I managed to write some code that should solve problem.
The code below adds all the childrens of specific movie clip to the array called arrayBox. The next loop SHOULD loop through all the items inside arrayBox and check if any of those items (those items are all movie clips) is colliding with movie clip which isn’t in array called avatar. If so, it should pop up the output and change some variable, but the point is that something with second loop is wrong…
var arrayBox:Array = [];
for (var i:int=0; i<this.numChildren; i++) {
arrayBox.push(this.getChildAt(i));
}
for each (arrayBox* in arrayBox) {
if (avatar.hitTestObject(arrayBox*)) {
avatar.yTimer = -5;
trace("A");
}
}
Thank you for any help so far