Variables between two separate flash movies?

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.
}

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

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

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.

*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

that’s really cool… however, when i tried it, i didn’t work :frowning: 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 :slight_smile:

And thanks to everyone who replied :slight_smile:

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

Thanks to everyone who helped!
Finally got it working… :slight_smile:

:slight_smile: