# ? Different Frames: Passing Var Values

**URL:** <https://forum.kirupa.com/t/different-frames-passing-var-values/1709>\
**Category:** flash\
**Created:** [June 6, 2002, 1:20pm UTC](https://forum.kirupa.com/t/different-frames-passing-var-values/1709 "2002-06-06T13:20:39Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [June 6, 2002, 1:20pm UTC](https://forum.kirupa.com/t/different-frames-passing-var-values/1709/1 "2002-06-06T13:20:39Z")

</div>

Hello there, can someone please tell me how to pass the variable value from frame to frame?

Ex. Problem

Frame 1 I’ve got variable Att = 100

Frame 2 I’ve got the same variable Att but it doesn’t show the 100 value it had from Frame 1.

\*\*\*Thanks in advance…

---

<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:** [June 6, 2002, 7:36pm UTC](https://forum.kirupa.com/t/different-frames-passing-var-values/1709/2 "2002-06-06T19:36:06Z")

</div>

Where did you put the variable ?? You may have put it inside a movie clip that doesn’t appear in frame 2. The simpler would be to put it in \_root (put \_root. in front of your variables).

pom 0]

---

<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:** [June 6, 2002, 10:55pm UTC](https://forum.kirupa.com/t/different-frames-passing-var-values/1709/3 "2002-06-06T22:55:00Z")

</div>

What do you mean frames. Yu can have frames in flash?  
Cause I am looking to make a web site from pure flash, but I am having trouble with the launching of pages.

and  
Say I make a button to launch a movie clip in the same window. Is there a function so that when I chose another button the previous movie clip will close? Cause That will be basically like frames.  
:]  
Thanks

---

<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:** [June 7, 2002, 3:49am UTC](https://forum.kirupa.com/t/different-frames-passing-var-values/1709/4 "2002-06-07T03:49:11Z")

</div>

Their talking about frames on the timeline, and how variables pass around in each. Start a new topic called something like “imitating html frames with Flash?” And I’ll see what I can do to answer your question.

---

<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:** [June 7, 2002, 6:24am UTC](https://forum.kirupa.com/t/different-frames-passing-var-values/1709/5 "2002-06-07T06:24:12Z")

</div>

as \_root.att1  
?

So on say, Frame 1:

maybe it’s going to have a start like  
\_root.att1 = 0;

then when I make it get a new value…

\_root.att1 = pow1 + adr1;

Then on Frame 2:

Say I’ve already made a dynamic text box named “SHOW”  
where I’ll display the value of att1…

is it going to be as simple as:

show = att1;

or

show = \_root.att1;

?

Thanks again for the time people…

---

<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:** [June 7, 2002, 7:26am UTC](https://forum.kirupa.com/t/different-frames-passing-var-values/1709/6 "2002-06-07T07:26:55Z")

</div>

Hey guys, thanks anyway, I just found out after tinkering a bit with my code, it seems that I just had a typo error that’s why it didn’t display my values lol! Well, have a nice time everyone…

---

<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:** [June 7, 2002, 7:02pm UTC](https://forum.kirupa.com/t/different-frames-passing-var-values/1709/7 "2002-06-07T19:02:58Z")

</div>

The bane of our existence. Always look for syntax.LOL
