# Change lots of variables

**URL:** <https://forum.kirupa.com/t/change-lots-of-variables/27339>\
**Category:** flash\
**Created:** [August 1, 2003, 8:00am UTC](https://forum.kirupa.com/t/change-lots-of-variables/27339 "2003-08-01T08:00:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thorseye](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thorseye/32/66_2.png) [@thorseye](https://forum.kirupa.com/u/thorseye)\
**Post date:** [August 1, 2003, 8:00am UTC](https://forum.kirupa.com/t/change-lots-of-variables/27339/1 "2003-08-01T08:00:31Z")

</div>

I’ve got a bunch of code on different buttons and frames in my movie. Lots of variables that begins with \_root. Now to my problem. I need to change all variablenames to \_level0 instead of \_root. Is there any good way except doing this manually? Like Find & Replace all in the entire fla-file?

---

<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:** [August 1, 2003, 8:38am UTC](https://forum.kirupa.com/t/change-lots-of-variables/27339/2 "2003-08-01T08:38:47Z")

</div>

There’s a Find & Replace button in ActionScript windows. You know, the grey area were all the buttons are in ? It’s one of those buttons. But for the whole FLA, you’ll have to go ASwindow by ASwindow I guess.

---

<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:** [August 1, 2003, 8:44am UTC](https://forum.kirupa.com/t/change-lots-of-variables/27339/3 "2003-08-01T08:44:21Z")

</div>

I don’t really see why would you wanna do that, but try this anyways (i doubt it works):

```auto
for (i in _root) {
_level0* = _root*
}

```

---

<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:** [August 1, 2003, 8:44am UTC](https://forum.kirupa.com/t/change-lots-of-variables/27339/4 "2003-08-01T08:44:57Z")

</div>

Yeah that’s what I thought… Well well, I’d better get started… ☹

---

<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:** [August 1, 2003, 8:48am UTC](https://forum.kirupa.com/t/change-lots-of-variables/27339/5 "2003-08-01T08:48:45Z")

</div>

> \*Originally posted by ahmed \*  
> **I don’t really see why would you wanna do that**

I’ve got a big movie, where many swf are loaded into the main swf. When I use \_root, flash thinks that it’s \_root in the swf you are in for the moment, but I want \_root for the main swf. So that’s \_level0. I use these variables to call for things from all the swf’s so I need to make the variables work for all of the swf’s. Hmm, I think I should go a class in explaining things. I’ve figured out that I’m really bad at it 😛
