I am starting to learn coding the class… I tried to declare a movieclip variable in a class file. But it shows an error.
class findXY
{
public var a:MovieClip=new Movieclip();
function findXY()
{
}
}
in flash i have
import findXY;
var myVar:findXY=new findXY();
The error message I get while running the movie is
Line 3: There is no method with the name ‘Movieclip’.
public var a:MovieClip=new Movieclip();
Total ActionScript Errors: 1 Reported Errors: 1
Where is the problem ?