# Relative path for creating text field

**URL:** https://forum.kirupa.com/t/relative-path-for-creating-text-field/188474
**Category:** flash
**Created:** [May 8, 2006, 9:15am UTC](https://forum.kirupa.com/t/relative-path-for-creating-text-field/188474 "2006-05-08T09:15:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jankratochvil](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jankratochvil/32/566_2.png) [@jankratochvil](https://forum.kirupa.com/u/jankratochvil)
#### Post date: [May 8, 2006, 9:15am UTC](https://forum.kirupa.com/t/relative-path-for-creating-text-field/188474/1 "2006-05-08T09:15:31Z")

</div>

If I load txt a want to create text field and the assign the loaded vars to my txt field.  
I can create the text field with absolute path \*\*\_root.createTextField \*\*, but I would like to create this with relative path, how can I make it?  
Now it works so:

```auto
// ***********LOAD VARIABLES****************
myVars = new LoadVars ();
myVars.onLoad = function (success)
{
	if (success)
	{
		trace ("variables from txt file loaded FRAME 3!");
		// create text for menu ABSOLUTE PATH
		_root.createTextField ("menu1_txt", getNextHighestDepth (), 17, 15, 90, 18);
		//
		menu1_txt.text = this.var_menu1;
		menu1_txt.border = true;
		menu1_txt.selectable = false;
		menu1_txt.setTextFormat (myTF_fmt);
		menu2_txt.text = this.var_menu2;
		menu3_txt.text = this.var_menu3;
		menu4_txt.text = this.var_menu4;
		menu5_txt.text = this.var_menu5;
		menu6_txt.text = this.var_menu6;
		menu7_txt.text = this.var_menu7;
		menu8_txt.text = this.var_menu8;
		menu9_txt.text = this.var_menu9;
	}

```
