I have this class (.as file) :
package {
import flash.display.Stage;
public class CustomObject {
public var stage:Stage;
public function CustomObject(stageRef:Stage) {
stage = stageRef;
}
}
}
In the main (.fla file)
var objInterfaz:CustomObject = new CustomObject (this);
But I got this error
implicit coercion of a value of type stage
Any help is appreciated
Thanks