# Basic 3.0 question re movieclips and main timeline

**URL:** <https://forum.kirupa.com/t/basic-3-0-question-re-movieclips-and-main-timeline/230130>\
**Category:** Uncategorized\
**Created:** [June 22, 2007, 9:15pm UTC](https://forum.kirupa.com/t/basic-3-0-question-re-movieclips-and-main-timeline/230130 "2007-06-22T21:15:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![santamonica](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@santamonica](https://forum.kirupa.com/u/santamonica)\
**Post date:** [June 22, 2007, 9:15pm UTC](https://forum.kirupa.com/t/basic-3-0-question-re-movieclips-and-main-timeline/230130/1 "2007-06-22T21:15:34Z")

</div>

In my main timeline, outside a function, I set a variable:  
var myVariable:String = “MyName”;

I can’t figure out how to change the value of myVariable when I’m in a movieclip

I’ve unsuccessfully tried:  
myVariable = “SomethingElse”;  
\_root.myVariable = “SomethingElse”;  
\_parent.myVariable = “SomethingElse”;

Also, when I’m in the movieclip (“myMovie\_mc”) I can’t figure out how to get out of the clip and go to the main timeline frame labeled “myFrame”

I’ve unsuccessfully tried:  
parent.myMovie\_mc.gotoAndPlay(“myFrame”);

stage.gotoAndPlay(“myFrame”);

Any help with these basic concepts would be appreciated.
