# PAssing Variables from Flash 2 Flash

**URL:** <https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321>\
**Category:** flash\
**Created:** [September 15, 2004, 5:49am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321 "2004-09-15T05:49:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aden\_1](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@aden\_1](https://forum.kirupa.com/u/aden_1)\
**Post date:** [September 15, 2004, 5:49am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/1 "2004-09-15T05:49:14Z")

</div>

Hey everyone!

Here is what i need to do…  
On my site, i have 3 different Flash Files. Each playing a different part .eg text, content, menu. (because of the design, i can’t have just 1 file, plus i want 3 seperate ones~!!!)

Bassically im guesisng its passing variables to and from multiple movie clips!  
i have no where to start.

Now what i want to try and do, is have the MENU(swf1) target a scene or frame in the CONTENT flash file(swf2)

So that when you click on about us button, it will target (eg.) frame 3 of SWF2, which contains that information!!

ANd also have the MENU(SWF1) be able to also target frames in TEXT(SWF3)

Bassically im guesisng its passing variables to and from multiple movie clips!  
i have no where to start.

Has anyone done anthing similar?  
or has a FLA i can look at?  
or can post some code!!!

Thanks agian KIRUPA!!!

---

<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:** [September 15, 2004, 5:54am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/2 "2004-09-15T05:54:06Z")

</div>

> [@aden\_1](#):
>
> Hey everyone!
> 
> Here is what i need to do…  
> On my site, i have 3 different Flash Files. Each playing a different part .eg text, content, menu. (because of the design, i can’t have just 1 file, plus i want 3 seperate ones~!!!)
> 
> Bassically im guesisng its passing variables to and from multiple movie clips!  
> i have no where to start.
> 
> Now what i want to try and do, is have the MENU(swf1) target a scene or frame in the CONTENT flash file(swf2)
> 
> So that when you click on about us button, it will target (eg.) frame 3 of SWF2, which contains that information!!
> 
> ANd also have the MENU(SWF1) be able to also target frames in TEXT(SWF3)
> 
> Bassically im guesisng its passing variables to and from multiple movie clips!  
> i have no where to start.
> 
> Has anyone done anthing similar?  
> or has a FLA i can look at?  
> or can post some code!!!
> 
> Thanks agian KIRUPA!!!

You need to have a look at localConnection(). You should be able to find an example, if not,i`ll try and find you one.

---

<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:** [September 15, 2004, 5:56am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/3 "2004-09-15T05:56:20Z")

</div>

if you could find me an example that would be fantastic!!!  
and very much appreciated!!

mean while ill have a search for localconnection!!

thank you very very much!

---

<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:** [September 15, 2004, 6:05am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/4 "2004-09-15T06:05:02Z")

</div>

> [@aden\_1](#):
>
> if you could find me an example that would be fantastic!!!  
> and very much appreciated!!
> 
> mean while ill have a search for localconnection!!
> 
> thank you very very much!

[http://www.gifsrus.com/testfile/localC.zip](http://www.gifsrus.com/testfile/localC.zip)

---

<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:** [September 15, 2004, 6:44am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/5 "2004-09-15T06:44:07Z")

</div>

i think localconnection was introduced in flash 7 ?

an alternative would be that you use fscommand to communicate via javascript.

this is supported even in flash 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:** [September 15, 2004, 6:48am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/6 "2004-09-15T06:48:33Z")

</div>

Thanks very much mate!  
much appreciated!

---

<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:** [September 15, 2004, 3:33pm UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/7 "2004-09-15T15:33:36Z")

</div>

you don’t have to use fscommand to call javascript functions, simply something like this would work:

```auto
getURL("javascript: *functionname*()");

```

hope this helps 🙂

---

<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:** [September 15, 2004, 3:38pm UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/8 "2004-09-15T15:38:42Z")

</div>

> [@aden\_1](#):
>
> Thanks very much mate!  
> much appreciated!

welcome  
Amitgeorge -flash mx

---

<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:** [September 16, 2004, 4:43am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-2-flash/64321/9 "2004-09-16T04:43:27Z")

</div>

Anytime

stringy Flash GURU
