# Using 'this'

**URL:** <https://forum.kirupa.com/t/using-this/319010>\
**Category:** flash\
**Created:** [February 6, 2011, 1:39pm UTC](https://forum.kirupa.com/t/using-this/319010 "2011-02-06T13:39:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [February 6, 2011, 1:39pm UTC](https://forum.kirupa.com/t/using-this/319010/1 "2011-02-06T13:39:42Z")

</div>

What’s the difference between using ‘this’ and not using it in the following examples?

```auto

[COLOR=#000000][COLOR=#0000bb]package [/COLOR][COLOR=#007700]{
    public final class [/COLOR][COLOR=#0000bb]MyClass [/COLOR][COLOR=#007700]{
        private var test;
        public function [/COLOR][/COLOR][COLOR=#000000][COLOR=#0000bb]MyClass [/COLOR][/COLOR][COLOR=#000000][COLOR=#007700](parameter):[/COLOR][COLOR=#0000bb]void [/COLOR][COLOR=#007700]{
            [/COLOR][/COLOR][COLOR=#000000][COLOR=#007700]this.test = [/COLOR][/COLOR][COLOR=#000000][COLOR=#007700]parameter;[/COLOR][/COLOR]
[COLOR=#000000][COLOR=#007700] }[/COLOR][COLOR=#007700]
    }
} 
[/COLOR][/COLOR]

```

[COLOR=#000000][COLOR=#007700]

[/COLOR][/COLOR]

```auto

[COLOR=#000000][COLOR=#0000bb]package [/COLOR][COLOR=#007700]{
    public final class [/COLOR][COLOR=#0000bb]MyClass [/COLOR][COLOR=#007700]{
        private var test;
        public function [/COLOR][/COLOR][COLOR=#000000][COLOR=#0000bb]MyClass [/COLOR][/COLOR][COLOR=#000000][COLOR=#007700](parameter):[/COLOR][COLOR=#0000bb]void [/COLOR][COLOR=#007700]{
            [/COLOR][/COLOR][COLOR=#000000][COLOR=#007700]test = [/COLOR][/COLOR][COLOR=#000000][COLOR=#007700]parameter;[/COLOR][/COLOR]
[COLOR=#000000][COLOR=#007700] }[/COLOR][COLOR=#007700]
    }
} 
[/COLOR][/COLOR]

```
