Path Referencing

Help please? This is something that always slips me up, is there any resources that can details how to reference in all resepects :D?

Heres my script I need help with:


//Class Imports
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colourButton:Function = function (btn_inner, btn_outter, btn_mc) {
    //Creates Color Transform
    var colorTrans:ColorTransform = new ColorTransform();
    //Transform Inner Colour
    var innerColour:Transform = new Transform(this.btn_0.btn_inner);
    //Set Colour
    colorTrans.rgb = btn_inner;
    innerColour.colorTransform = colorTrans;
    //Transform Outter Colour
    var outterColour:Transform = new Transform(this.btn_0.btn_outter);
    //Set Colour
    colorTrans.rgb = btn_outter;
    outterColour.colorTransform = colorTrans;
    //trace(colorTrans.rgb.toString(16));
};
colourButton(0xec1e5c, 0x06ff00, btn_0);

Where I have

var innerColour:Transform = new Transform(this.btn_0.btn_inner);

I would like

var innerColour:Transform = new Transform(this.btn_mc.btn_inner);

Where btn_mc is called from the funciton.

Atm it just thinks I’m saying that btn_mc is the instance, I want the variable from the function to be used as the instance.

Please help :D?