Constrain movieClip

Hi,

i have a [color=blue]movieClip[/color] instance named as [color=blue]guy[/color] in the stage, which can only be navigated by using up,right,left and down arrow keys. I’ve written the code for navigation on the instance of the **[color=blue]guy[/color] **itself. (i.e onClipEvent(enterframe){

Now there are 6 [color=blue]squares[/color] with each of them having their own unique instance names scattered in the stage.

what right now i have written on the [color=blue]squares[/color] is when hit test with the [color=blue]guy[/color] is true, get the [color=blue]guy[/color] get killed

Instead of killing what i need is, i need to stop the **[color=blue]guy [/color]**whenever he bumps on any of the [color=blue]**squares **[/color][color=black]placed on the stage. [/color]

how i can constrain the guy’s _x, _y positions with reference to the 6 [color=blue]squares ?[/color]
[color=#0000ff][/color]
*[color=red]i’ve attached the small size .fla file as zip for your reference.[/color]
[color=#0000ff][/color]
[color=navy]please someone clarify me ! thanks ![/color]
[color=#0000ff][/color]
[color=black]da_hammer[/color]