Function executing as construct, but not as function
I have the following code in my displayandmove.as file:

<pre>
package {
	
	import flash.display.MovieClip;
	
	public class FigureConstruct extends MovieClip {
		
		public function displayandmove() {
			this.height = stage.stageHeight/5;
			this.width = stage.stageWidth/5;
		}
		
	}
	
}
</pre>

And I have the following on frame 1 of my displayandmove.fla:
<pre>
var figure:FigureConstruct = new FigureConstruct();
stage.addChild(figure);
figure.x = stage.stageWidth/2;
figure.y = stage.stageHeight/2;
</pre>

These files are in the same directory. In my FLA library I have my figure MovieClip and it ha a Class of "FigureConstruct" and base class of "flash.display.MovieClip". 

Currently the code above works fine because I figured out that if I execute the object size code as a construct -- using the file name as the function name -- it works.

What I originally intended to do was to have my function named "sizeFigure()" in my AS file and then call "figure.sizeFigure();" after "stage.addChild(figure);" on frame 1 of my FLA.

This output "Error #1006: value is not a function."

Can anyone explain what I am missing to get this to execute as a function rather than as a constructor?

I thought maybe I am goofing up when I set my Class and Base Class pointers for the library object... but not sure.

PS - Sorry if I am misusing terms, still nailing those down as I go.
Function executing as construct, but not as function
===

I have the following code in my displayandmove.as file:

<pre>
package {
	
	import flash.display.MovieClip;
	
	public class FigureConstruct extends MovieClip {
		
		public function displayandmove() {
			this.height = stage.stageHeight/5;
			this.width = stage.stageWidth/5;
		}
		
	}
	
}
</pre>

And I have the following on frame 1 of my displayandmove.fla:
<pre>
var figure:FigureConstruct = new FigureConstruct();
stage.addChild(figure);
figure.x = stage.stageWidth/2;
figure.y = stage.stageHeight/2;
</pre>

These files are in the same directory. In my FLA library I have my figure MovieClip and it ha a Class of "FigureConstruct" and base class of "flash.display.MovieClip". 

Currently the code above works fine because I figured out that if I execute the object size code as a construct -- using the file name as the function name -- it works.

What I originally intended to do was to have my function named "sizeFigure()" in my AS file and then call "figure.sizeFigure();" after "stage.addChild(figure);" on frame 1 of my FLA.

This output "Error #1006: value is not a function."

Can anyone explain what I am missing to get this to execute as a function rather than as a constructor?

I thought maybe I am goofing up when I set my Class and Base Class pointers for the library object... but not sure.

PS - Sorry if I am misusing terms, still nailing those down as I go.