Quest For A Dynamic Button Prob

id like to be able to assign a movieClip, x&y position,text,event string,etc to a dynamic button class called EZButton.

Here’s my document: (There’s a movieclip in the library called TestButton)

package
{
	import flash.display.MovieClip;

	public class ButtonPracticeDocument extends MovieClip
	{
		var testEZButton:EZButton;
		public function ButtonPracticeDoument():void
		{
			testEZButton=new EZButton(TestButton);
			addChild(testEZButton);
		}
	}
}

heres my EZButton

package
{
	import  flash.display.MovieClip;
	import  flash.events.MouseEvent; 
	
	
	public class EZButton extends MovieClip
	{
		var targetMovieClip:MovieClip;
		
		public function EZButton(_targetMovieClip:MovieClip):void
		{
			targetMovieClip=_targetMovieClip;
		}
	
	}
}

and here’s my error for ButtonPracticeDocument

1067: Implicit coercion of a value of type Class to an unrelated type flash.display:MovieClip.

for line 10 which is this one:

testEZButton=new EZButton(TestButton);

of course the idea is that i assign the movieclip name passed as an argument to the EZButton class but here we are

i’ve also tried:

testEZButton=new EZButton(TestButton as MovieClip);

which doesn’t throw errors but no buttons either

what don’t i understand?