Change lots of variables

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?

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.

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

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

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

*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 :stuck_out_tongue: