Editing linked library items class

created a mc in library, gave it classname…

everything works, can access it by
var asd = new classname();

created classname.as with classname class as i need to add variable to the movieclip

and getting error 1180: call to possibly undefined method “classname”

is there any difference in a class if it’s a library element?