# 1061 error on Custom class

**URL:** <https://forum.kirupa.com/t/1061-error-on-custom-class/312517>\
**Category:** flash\
**Created:** [August 5, 2010, 2:45pm UTC](https://forum.kirupa.com/t/1061-error-on-custom-class/312517 "2010-08-05T14:45:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LS05](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@LS05](https://forum.kirupa.com/u/LS05)\
**Post date:** [August 5, 2010, 2:45pm UTC](https://forum.kirupa.com/t/1061-error-on-custom-class/312517/1 "2010-08-05T14:45:23Z")

</div>

Hi guys,  
I’ve a 1061 problem with a custom class.  
My class is named lingua here the code: [http://pastebin.com/7bUuZ4pM](http://pastebin.com/7bUuZ4pM)  
I’ve imported it in my main class but when i delcare a variable like this:

```auto
var a:String = lingua.getLang();

```

It gives me a 1061 error that says to me "call to a possibly undefinited method getLang();  
Here the main: [http://pastebin.com/BcPyDT4i](http://pastebin.com/BcPyDT4i)

The problem stays in the function bottoniLingua at line 155. In fact i’ve commented the code. but i need those lines because i use them to check the language.

I don’t know why this errore comes because i don’t misspelled nothing.
