Fill a movieclip with loadBitmap

Hi,
I have a question about loadBitmap. I want to fill a movieclip with a tiled background but it looks kinda weird. It’s all streched out. If I use Stage.width and Stage.height it looks great but of course it’s not what I want since I want only that movieclip. I tried with a mask but then when I try to test myMovieClip._width it equals Stage.width.
Here’s my code:


function tileBg(mc:MovieClip,w:Number,h:Number,bg:String):Void {
    var tile:BitmapData = BitmapData.loadBitmap(bg);
    trace("TILE BG= "+ tile);
    mc.beginBitmapFill(tile);
    mc.moveTo(0,0);
    mc.lineTo(w,0);
    mc.lineTo(w,h);
    mc.lineTo(0,h);
    mc.lineTo(0,0);
    mc.endFill();
}
tileBg(myClip,myClip._width,myClip._height,''tile")

Any help would be great.
Thank you.