Replacing instance name with variable

[font=Arial]hi hi, me again. [/font]
[font=Arial]i’m trying to set property with a movie clip instance when it is displayed on the stage, with pre-defined functions on the first frame:[/font]

 setPro = function(movname){
movname.onEnterFrame = function(){
if(this._alpha > 0){
this._alpha -= 10;
}
} 

and in the frame where the movie clip named “mov1” is present on the stage, i put:

 setPro("mov1"); 

but the code doesn’t work because it is searching for a movie clip called “movname” instead of replacing it with “mov1”.
is there any method to overcome this?