Cannot access Variables inside movieclip classes

when I define a class I can access all functions and variables until I give the object from the library the same class name. Then I cannot get the values anymore. Can some one please tell me why and/or if there is a work around?