Creating boundries for Buildings and Border

I have had flash for awhile, but only used for Animation and websites, and I decided to dwell into creating a flash game. I have movement, hotspots, money, inventory, buying from merchants, and a UI. My only problem is boundaries for buildings that are in irregular shapes.

This is topdown and does not scroll.

I used my movement coding from a RPG tutorial on this site.

RPG programming on Kirupa

but I am not using a tile as I’m drawing a city then was just gonna add borders to buildings but I can’t find anything that covers this.

I tried hittests, but I can’t get them to stop my character. I read about making a bitmap then using Actionscript that he can move in the white but not the black. If you can lead me to anything about that, it will be helpful.

If you want to see my code, just simply look at the .FLA file posted below

RPGmockup 1.1MB

This is a MOCK-UP my game with codes I use, but my game nonetheless. When opened you will see Haven, the main character, A sign, a building, and a silver piece. Note this is a mock-up so the hastiness should be ignored.

the entrance to the store leads into the store with nothing in it, ignore this.

I just need to know how to make boundaries, so if you can help please do.