I still have a little problem. I have 6 diferent objects. Let's call them a, b, c, d, e, f. Each of these objects have containd objects (buttons), and I use them as some kind of hit zone (see picture in a link)!
http://postimg.org/image/j2h4y2c65/
Both of objects in picture are movable objects. Each of objects have start positions. I want to do this:
If object a.hitzoneA collides with b.hitzoneB (a.hitzoneA.hitTestObject (b.hitzoneB)), return object "a" to the start position, and leave object "b" where it is. Vice Versa, if object b.hitzoneB hits a.hitzoneA, I want object b to move to its start position.
I tryed using if/else if/else, arrays of objects, but no luck. BOTH objects go to its start positions, every time. Can someone suggest solution to this problem?