# Variable wierdness

**URL:** <https://forum.kirupa.com/t/variable-wierdness/128762>\
**Category:** Uncategorized\
**Created:** [November 15, 2004, 11:39pm UTC](https://forum.kirupa.com/t/variable-wierdness/128762 "2004-11-15T23:39:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neods](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@neods](https://forum.kirupa.com/u/neods)\
**Post date:** [November 15, 2004, 11:39pm UTC](https://forum.kirupa.com/t/variable-wierdness/128762/1 "2004-11-15T23:39:01Z")

</div>

Hi, I am going nuts over this. I will explain what I have. I really do hope someone could help me on this one.

in the main swf, i load an external swf to it.

## loadMovie(externalfile.swf, \_root.content);

And then in the external swf, I have a varible named

frametogo = new String(none);

* * *

In the external swf I have a button that does this.

on (release) {  
frametogo = 3;  
this.textFade.gotoAndPlay(2);  
this.anim.gotoAndPlay(36);

}

* * *

So it tells the textfade to go forward and in the middle of the textfade I have this action

this.\_parent.gotoAndStop(\_root.frametogo);

* * *

All this works nicely when its played alone. but when its loaded to the main swf, the frametogo variable is not read in the textfade movie clip? I’m using Flash 6 on this.

all so on the first frame of the external and the main swf i have a action that goes like this

this.\_lockroot = true;

Can anyone get any sense of this?

Thank you, and I really appriciate if anyone can check what i have written here and maybe give it an anwser of some sort.
