ok so i want to do set up my level with tiles, and then do pixel perfect collissions. but for as long as i can remember ive been unable to get past the collission side of things. and it has annoyed me for a long time.

so im asking for your help. this is how im doing the tiles:
Actionscript Code:
var tWidth:Number = 32; // tile width
var tHeight:Number = 32; // tile height
var w:Number; // controls the individual value for the indexs for mapWidth.
var h:Number; // controls the individual value for the indexs for mapHeight.
// this is the layout of level. look at tile movieclip for graphics.
// 0 = nothing
// 1 = block
var myMap:Array = [ [1,1,1,1,1],
          [1,0,0,0,1],
          [1,0,1,0,1],
          [1,0,0,0,1],
          [1,1,1,1,1] ];
// function which draws up the map
function drawIt(){
    var mapWidth:Number = myMap[0].length;
    var mapHeight:Number = myMap.length;
    for(h=0; h<mapHeight; h++){
        for(w=0; w<mapWidth; w++){
            var tile:t = new t();
            addChild(tile);
            tile.x = w*tWidth;
            tile.y = tHeight*h;
            tile.gotoAndStop(myMap[h][w]+1);
            /*
            this is how you'd add a character:
            if (h==0 && w==5){
                this.addChildAt(p1,2);
                p1.x=w*tWidth;
                p1.y=h*tHeight+160;
            }
            */

        }
    }
}
drawIt(); // calls the map drawing function we just made.

im open to feedback, on better ways of setting-up/creating the tiles.

over the years, ive made countless attempts at finally making or at the very least using a system that wasn't so math heavy. i mean seriously were not talking about rocket science, just collisions!

ive tried gaming books, tutorials such as tonyPA or whatever his name is. outsideSociety and heaps of others off google. all resulting in the same hopeless failure.

over the years ive gave this my best shot trying to understand it. but with everytime resulting in fail. i feel like if i don't get it this time, i'll simply quit and not try this ever again. which isn't my usuall attitude. but after this long i think many would have already cracked.

so any help you guys can provide would be greatly appreciated.