Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile Time Error CS3 1

Status
Not open for further replies.

ice78991

Programmer
Nov 20, 2006
216
I have an instance of a MovieClip symbol on the stage named myViewer

In Viewer.as I have the following

public class Viewer extends Sprite {

private var tgt:MovieClip;

public function Viewer(targ:MovieClip) {
tgt = targ;
}

etc

In my .fla I have the following

var vwr = new Viewer(this.myViewer);

When I compile this I get the following error for the line in my .as file
public function Viewer(targ:MovieClip) {

1046:Type was not found or was not a compile time constant MovieClip


WHat am I doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top