How to find objects of names that hit on the other object

Dear friends,

I move a movieclip to the screen every where on the screen during the movement I will hit or overlap other objects on the screen. I want to find the name of objects that overlap my movieclip or hitting.

for example, I used trace (my_mc.hitTestObject (objnames). Here, the objnames can be any object (video clips) on the screen. I want to find what hitted my movieclip object...

Please help me... its like a game project.

Thanks in advance,

Syed Abdul Rahim

My fault, I got typo in my loop:

var i: int = 0; 1<>

should be

var i: int = 0; i<>

Now it works as expected

Tags: Adobe Animate

Similar Questions

Maybe you are looking for