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?
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?