# What is the difference: this and this.root

**URL:** <https://forum.kirupa.com/t/what-is-the-difference-this-and-this-root/281905>\
**Category:** Uncategorized\
**Created:** [February 14, 2009, 9:48pm UTC](https://forum.kirupa.com/t/what-is-the-difference-this-and-this-root/281905 "2009-02-14T21:48:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smallDot](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@smallDot](https://forum.kirupa.com/u/smallDot)\
**Post date:** [February 14, 2009, 9:48pm UTC](https://forum.kirupa.com/t/what-is-the-difference-this-and-this-root/281905/1 "2009-02-14T21:48:13Z")

</div>

i tried these two code, and i found that when i deleted the imports lines and this keyword is still works.

```auto

import flash.display.*;
import flash.text.TextField;
var myText:TextField = new TextField();
myText.text = "Buenos dias.";
this.addChild(myText);

```

also here, this.root: why it is here?

```auto

var myTextField:TextField = new TextField();
myTextField.text = "hello";
this.root.addChild(myTextField);

```
