# Getting Variables from inside movie clips in MX

**URL:** <https://forum.kirupa.com/t/getting-variables-from-inside-movie-clips-in-mx/21203>\
**Category:** flash\
**Created:** [May 18, 2003, 10:10pm UTC](https://forum.kirupa.com/t/getting-variables-from-inside-movie-clips-in-mx/21203 "2003-05-18T22:10:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Rogue](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@The\_Rogue](https://forum.kirupa.com/u/The_Rogue)\
**Post date:** [May 18, 2003, 10:10pm UTC](https://forum.kirupa.com/t/getting-variables-from-inside-movie-clips-in-mx/21203/1 "2003-05-18T22:10:00Z")

</div>

Currently i stuck with a project i’m working on, as some variables are inside of a movie clip, and i can’t seem to access them from the main timeline.

Anyone know how?

---

<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:** [May 18, 2003, 10:11pm UTC](https://forum.kirupa.com/t/getting-variables-from-inside-movie-clips-in-mx/21203/2 "2003-05-18T22:11:50Z")

</div>

those variables are use for that mc/timeline only…

you can acces them by using

\_root.yourmc.varname

or, make you var’s global, so you can use them on EVERY clip…  
like:

\_global.varname = “hello”;

should help

---

<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:** [May 18, 2003, 10:18pm UTC](https://forum.kirupa.com/t/getting-variables-from-inside-movie-clips-in-mx/21203/3 "2003-05-18T22:18:59Z")

</div>

no luck with that.

All i’m trying to do is display a score on the main timeline in a dynamic text box.

The variable is called score and is inside a movie called “Quiz1” with the instance “quiz”

---

<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:** [May 18, 2003, 10:19pm UTC](https://forum.kirupa.com/t/getting-variables-from-inside-movie-clips-in-mx/21203/4 "2003-05-18T22:19:37Z")

</div>

allright, when you calculated the score, store it in a global variable… like:

```auto

_global.score = score;

```

then, on the main timeline, use this code to apply it to the textbox

```auto

textbox.text = _global.score;
// or
textbox = _global.score;

```

---

<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:** [May 20, 2003, 5:04pm UTC](https://forum.kirupa.com/t/getting-variables-from-inside-movie-clips-in-mx/21203/5 "2003-05-20T17:04:21Z")

</div>

Well, i’m completely stuck here and i can’t get it to work, so could someone do it for me?

The quiz with the variable “score” inside is on frame 4 and i’m attempting to get the score to display in the dynamic textbox next to conversation in frame 6.

thanks

the .fla is availble here.

[http://rogue.breezeland.com/flash/jason2003.fla](http://rogue.breezeland.com/flash/jason2003.fla)

---

<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:** [May 20, 2003, 5:16pm UTC](https://forum.kirupa.com/t/getting-variables-from-inside-movie-clips-in-mx/21203/6 "2003-05-20T17:16:53Z")

</div>

Well, i’m completely stuck here and i can’t get it to work, so could someone do it for me?

The quiz with the variable “score” inside is on frame 4 and i’m attempting to get the score to display in the dynamic textbox next to conversation in frame 6.

thanks
