# Variables between two separate flash movies?

**URL:** <https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525>\
**Category:** Uncategorized\
**Created:** [July 1, 2003, 8:03pm UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525 "2003-07-01T20:03:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![daheroes](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@daheroes](https://forum.kirupa.com/u/daheroes)\
**Post date:** [July 1, 2003, 8:03pm UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/1 "2003-07-01T20:03:20Z")

</div>

I have a problem with trying to have a global variable across two separate animations (two different menus on an interface)  
I was wondering if it were possible to do this, because I’m setting up CSS on a webpage using a Flash button. (to get the flash background color to change with the buttons, i cheated, and made an MC that has different colored backgrounds. When one of the 3 buttons is clicked, the button changes the style and background color. Here are the actions attached to the buttons.

on (release) {  
getURL(“javascript: setActiveStyleSheet(‘blue’);”)  
\_root.back.gotoAndStop(“blue”);  
}

It currently works fine, but I need to be able to change the color of the background on a different flash menu on the same page.  
}

---

<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 1, 2003, 9:16pm UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/2 "2003-07-01T21:16:19Z")

</div>

hmm i would suggest sending the vars to a server side script and then retreiving it from another flash movie

---

<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 1, 2003, 10:05pm UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/3 "2003-07-01T22:05:25Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=27060](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=27060)

---

<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 1, 2003, 10:08pm UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/4 "2003-07-01T22:08:45Z")

</div>

Yeah, you can use LocalConnection to share variables. You don’t have to send to a server. If you’d like a little demo on how it works (since it’s not documented in some people’s MX installations) let me know.

---

<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 1, 2003, 10:36pm UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/5 "2003-07-01T22:36:52Z")

</div>

> \*Originally posted by lorcas \*  
> \*\*Yeah, you can use LocalConnection to share variables. You don’t have to send to a server. If you’d like a little demo on how it works (since it’s not documented in some people’s MX installations) let me know. \*\*

really thats cool, i did not know that

---

<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 2, 2003, 1:06am UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/6 "2003-07-02T01:06:37Z")

</div>

that’s really cool… however, when i tried it, i didn’t work ☹ so perhaps lorcas, or someone else could show me how? I need to send 3 separate functions that tell the movieclip instance “back” to go to different labels. However, if you don’t feel like going to the trouble of showing how to do 3, one would be really nice 🙂

And thanks to everyone who replied 🙂

---

<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 2, 2003, 1:20am UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/7 "2003-07-02T01:20:13Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=27105](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=27105)

---

<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 2, 2003, 9:47pm UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/8 "2003-07-02T21:47:23Z")

</div>

Thanks to everyone who helped!  
Finally got it working… 🙂

---

<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 2, 2003, 9:48pm UTC](https://forum.kirupa.com/t/variables-between-two-separate-flash-movies/24525/9 "2003-07-02T21:48:06Z")

</div>

🙂
