# Flash Gurus Help Me

**URL:** <https://forum.kirupa.com/t/flash-gurus-help-me/25280>\
**Category:** flash\
**Created:** [July 11, 2003, 1:54am UTC](https://forum.kirupa.com/t/flash-gurus-help-me/25280 "2003-07-11T01:54:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemoBejingler](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nemoBejingler](https://forum.kirupa.com/u/nemoBejingler)\
**Post date:** [July 11, 2003, 1:54am UTC](https://forum.kirupa.com/t/flash-gurus-help-me/25280/1 "2003-07-11T01:54:36Z")

</div>

i have this on the first frame on the main timeline:

middleMain.[COLOR=red]temp[/COLOR] .\_x = test[2];

[COLOR=red]temp[/COLOR] is not a movie clip, it is a variable, how can i make it look for that variable value inside of middleMain instead of it looking for a movieclip called temp inside of middleMain.

THX

---

<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:** [July 11, 2003, 2:03am UTC](https://forum.kirupa.com/t/flash-gurus-help-me/25280/2 "2003-07-11T02:03:33Z")

</div>

just temp.\_x then.

---

<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:** [July 11, 2003, 2:06am UTC](https://forum.kirupa.com/t/flash-gurus-help-me/25280/3 "2003-07-11T02:06:23Z")

</div>

[COLOR=red]temp[/COLOR] is located inside of movieclip middleMain, and even if it wasn’t, i don’t believe your idea will work.

THX

---

<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:** [July 11, 2003, 2:10am UTC](https://forum.kirupa.com/t/flash-gurus-help-me/25280/4 "2003-07-11T02:10:07Z")

</div>

…nevermind.

if you want to access the temp variable from inside middleMain (for example, code attached to middleMain), then you would just get it by simple using temp instead of middleMain.temp

since the code would be within middleMain, then all of its variables, including temp would be local, meaning you can simply call each variable without having to use middleMain._variable_

---

<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:** [July 11, 2003, 2:34am UTC](https://forum.kirupa.com/t/flash-gurus-help-me/25280/5 "2003-07-11T02:34:30Z")

</div>

my bad, guess i didn’t explain myself well enough. the temp variable is on main timeline, the value of the temp variable is the name of a movieclip inside of the movieclip middleMain. lets say that the value of temp is middleSecond. i want to change middleMain.middleSecond.\_x to lets say to 5 from the main timeline. but instead of:

middleMain.middleSecond.\_x

use the variable temp

middleMain.[COLOR=red]temp[/COLOR] .\_x = 5

---

<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:** [July 11, 2003, 2:39am UTC](https://forum.kirupa.com/t/flash-gurus-help-me/25280/6 "2003-07-11T02:39:59Z")

</div>

ok, i see. so this should work:

```auto
middleMain.temp = middleMain.middleSecond;
//now you are free to do to middleMain.temp as you would middleMain.middleSecond
middleMain.temp._x = 5;

```

---

<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:** [July 11, 2003, 3:19am UTC](https://forum.kirupa.com/t/flash-gurus-help-me/25280/7 "2003-07-11T03:19:24Z")

</div>

PROPS TO YOU!
