# Using levels (edited title)

**URL:** <https://forum.kirupa.com/t/using-levels-edited-title/3408>\
**Category:** classic bestof\
**Created:** [March 10, 2002, 10:02am UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408 "2002-03-10T10:02:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 10:02am UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/1 "2002-03-10T10:02:09Z")

</div>

Hi, I’m using the scrollable Textbox thingy for a webpage I’m making. The problem I have is that my buttons are in a movie clip that are 1 level lower than my scrollableText box. So when I add actions to my buttons to change the scrollableText variable, what do i do? I tried.\rOn release \_root.scrollableText = “blah”\rbut that didn’t work. i also tried scrollableText = “blah” that didn’t work.\rThanks\r-Jon

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 11:41am UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/2 "2002-03-10T11:41:18Z")

</div>

since you are talking about ‘levels’ i am assuming that you are using loadMovieNum.\ryou can control levels just like movie clips.\rex:\rto control level 15…\r\_level15.gotoAndPlay(“level15\_rules”);\rto control a movie clip on level 15…\r\_level15.mcMyMovieClip.gotoAndPlay(“i\_live\_in\_level15”);\r\r’\_root’ is relative to the level that contains it. some people make the mistake of thinking that ‘\_root’ and ‘\_level0’ are interchangeable…they are not.\r:) \rjeremy

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 11:48am UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/3 "2002-03-10T11:48:33Z")

</div>

I’m not sure I understand.

> ‘\_root’ is relative to the level that contains it  
> What’s the correct as then : \_root.\_level1.variable or \_level1.\_root.variable ? I always believed that it was the first one but your sentence leads me to think otherwise.\r\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 12:16pm UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/4 "2002-03-10T12:16:36Z")

</div>

Nope, \_root.level1 makes no sense, it’s as if saying level0.level1, and you can’t be on both!\rFirst pick a level you wanna work in, then pich the clip/target. And indeed, \_root will act as the base level of the clip in the level you chose, while \_root by itself will be level0’s \_root…this was just to confiuze all of ya, hehe

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 12:31pm UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/5 "2002-03-10T12:31:06Z")

</div>

And you succeded admirably, Eyez !\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 8:15pm UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/6 "2002-03-10T20:15:07Z")

</div>

eyez, that is not totally correct…\r\_root is the lowest level of the swf that contains the object referring to \_root.\r\_root by itself is NOT \_level0 unless the you are referring to \_root from within \_level0.\r\_level0 is the first swf loaded into the player, and everything loaded into \_level0 is a part of \_level0. if you load a movie into a target in \_level0, and that clip refers to \_root, then it is referring to \_level0. if you load a movie into \_level5, everything in that level that refers to \_root is referring to \_level5 - even if you load a movie into a target in \_level5.\rbasically \_root is relative and \_level is absolute.\r:) \rjeremy

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 9:01pm UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/7 "2002-03-10T21:01:25Z")

</div>

Let’s see if I get this :\rIl load my movie in level 5. If I want some data located in the \_root of my main movie, that is to say level 0, I’ll have to access it with \_level0. and that’s it. No \_root.\r\rIs that right ?\r\rpom 0] \rI’m making this a best of Kirupa right now !! Well not right now, but when it’s finished…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 11:20pm UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/8 "2002-03-10T23:20:15Z")

</div>

that is exactly it, pom!!\ryou have to use the level when controlling variables or clips in different levels.\ras a matter of fact, flash relies solely on the level of swf’s when it ‘thinks’ about movie clips, variables, etc.\rto test this, just make a new movie in flash and put this in the first frame:\rtrace (targetPath(\_root));\rthen test movie.\rin the output window, it should say ‘\_level0’. now, if you made another movie that loads that movie into level 15 and tested that movie you would get ‘\_level15’ in the output window, even though the trace says ‘\_root’ in the targetPath.\r:) \rjeremy

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 10, 2002, 11:26pm UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/9 "2002-03-10T23:26:43Z")

</div>

This is so funny…\_root, level0, main Movie, target clip…imagine a beginner reading this and pulling his hair out! Where the hell am I, in the basement, 1st floor or ceiling? Why is \_root sometimes \_root and sometimes level0? LOL! (I know it’s not, sinfinity, it’s just so hilarious…)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 11, 2002, 1:39am UTC](https://forum.kirupa.com/t/using-levels-edited-title/3408/10 "2002-03-11T01:39:59Z")

</div>

that’s the confusing thing…sometimes \_root is \_level0!\r:P\ri think we scared everyone away!\r:) \rjeremy
