# AS2 'this' keyword

**URL:** https://forum.kirupa.com/t/as2-this-keyword/164281
**Category:** flash
**Created:** [September 29, 2005, 8:08pm UTC](https://forum.kirupa.com/t/as2-this-keyword/164281 "2005-09-29T20:08:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Grungy](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@Grungy](https://forum.kirupa.com/u/Grungy)
#### Post date: [September 29, 2005, 8:08pm UTC](https://forum.kirupa.com/t/as2-this-keyword/164281/1 "2005-09-29T20:08:18Z")

</div>

From my understanding, the _[color=black]this[/color]_[color=black] keyword in AS2.0 classes is not needed to access class-level properties. What I’m curious about is whether you _can_ use it, to prevent naming issues. For example, I often do something like this with the naming of parameters to functions:

[AS]  
class Point {  
var x:Number;  
var y:Number;  
var z:Number;

```
function Point (x:Number, y:Number, z:Number):Void
{
    this.x = x;
    this.y = y;
    this.z = z;
}

...

```

}  
[/AS]

Would the function’s parameter being named the same as a class property still raise issues?

**[EDIT]====================**  
Also, are there any naming restrictions to classes? I know some languages don’t allow numbers at all, some don’t allow them as the last character in a name, some don’t allow them as the first, etc.  
[/color]
