Seems easy, but isn't for me. Passing a variable to a function

It seems that with as3, the error compiler is just waiting to get you.

I have a function that loads in an external swf. Which swf depends on which button they click. So, it could be pic1.swf, pic2.swf, pic3.swf, etc.

function loadMovie(){

my_mc.addChild(my_Loader);
addChild(my_mc);

var my_url:URLRequest=new URLRequest(“pic” + myVariable + “.swf”);
my_Loader.load(my_url);

my_mc.x = 206;
my_mc.y = 100;

}

Here is the code for one of the buttons that triggers the loadMovie function.

myButton.addEventListener(MouseEvent.CLICK, onClicknav2);

function onClicknav2(event:MouseEvent):void {

var myVariable:Number = 1;
loadMovie();

}

When i test, I get "error: access to undefined property myVariable. ’

What is going on ? What must I do to make this right?

Thanks.