# 1042 Error

**URL:** <https://forum.kirupa.com/t/1042-error/317928>\
**Category:** flash\
**Created:** [January 6, 2011, 6:51am UTC](https://forum.kirupa.com/t/1042-error/317928 "2011-01-06T06:51:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinodpossible](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vinodpossible](https://forum.kirupa.com/u/vinodpossible)\
**Post date:** [January 6, 2011, 6:51am UTC](https://forum.kirupa.com/t/1042-error/317928/1 "2011-01-06T06:51:34Z")

</div>

Hi Friends,

```
      I need a help. i got an error in AS

```

**1042: The this keyword can not be used in static methods. It can only be used in instance methods, function closures, and global code.**

this is the error line.

**public static var defaultEase:Function = this.easeOut;**

Please help me to clear this.
