Problem
Need detect collision.
Solution
Using hitTestObject.
Detailed explanation
Please create 2 movie clips on your stage.
When one movie clip connect to other you must see ‘boom’ on the output window.
stage.addEventListener(KeyboardEvent.KEY_DOWN, starMoving);
function starMoving(event:KeyboardEvent):void
{
switch (event.keyCode)
{
case Keyboard.UP : star_mc.y-=10;
break;
case Keyboard.DOWN : star_mc.y+=10;
break;
case Keyboard.LEFT : star_mc.x=star_mc.x-10;
break;
case Keyboard.RIGHT : star_mc.x+=10;
break;
default:
break;
}
if(star_mc.hitTestObject(house_mc))
{
trace("boom");
}
}

Source
detecting_collisions
