# 1061: Call to a possibly undefined method

**URL:** <https://forum.kirupa.com/t/1061-call-to-a-possibly-undefined-method/266945>\
**Category:** Uncategorized\
**Created:** [July 25, 2008, 10:08pm UTC](https://forum.kirupa.com/t/1061-call-to-a-possibly-undefined-method/266945 "2008-07-25T22:08:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ozymandias](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ozymandias/32/1997_2.png) [@Ozymandias](https://forum.kirupa.com/u/Ozymandias)\
**Post date:** [July 25, 2008, 10:08pm UTC](https://forum.kirupa.com/t/1061-call-to-a-possibly-undefined-method/266945/1 "2008-07-25T22:08:27Z")

</div>

I have a test class:

package {  
public class Test {  
public function Test() {  
}

```
    public function testMe():String {
        return 'Tested';
    }
}

```

}

Which I include thussly:

import Test;

But when I call

trace(Test.testMe());

It says:

“1061: Call to a possibly undefined method testMe through a reference with static type Class.”

It works if I do:

var asdf:Test = new Test();  
trace (asdf.testMe());

I don’t understand why I have to instantiate the class for it to work? I have a tween library called TweenLite which I don’t have to instantiate to use, and as far as I can tell the class syntax is the same.

Any help would be appreciated.
