I need help creating a class please

Hi,

What I want to do is create a class to fade all my links. I would like to be able to re-use this class in any future project.

I do not want to link the class directly to the object or to the Document class in the FLA file,
what I want is to create an object of the class in my .fla file and than apply a method from the class to any object in the my .fla file.

This is what I have, but obviously it doesn’t work. Help please…

package {
import flash.display.MovieClip;

public class FadeIt extends MovieClip {

	function fadeThis(fade:Number):void {
		this.target.alpha = fade;
		
	}
}

}

//FLA FILE:

var fading:FadeIt = new FadeIt();

myMc.FadeIt.fadeThis(.5);

Thanks,
fs_tigre