# \[FMX\]Connecting 2 .swf from the same HTML page. How?

**URL:** <https://forum.kirupa.com/t/fmx-connecting-2-swf-from-the-same-html-page-how/65760>\
**Category:** flash\
**Created:** [September 29, 2004, 12:05pm UTC](https://forum.kirupa.com/t/fmx-connecting-2-swf-from-the-same-html-page-how/65760 "2004-09-29T12:05:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![virusescu](https://avatars.discourse-cdn.com/v4/letter/v/8edcca/32.png) [@virusescu](https://forum.kirupa.com/u/virusescu)\
**Post date:** [September 29, 2004, 12:05pm UTC](https://forum.kirupa.com/t/fmx-connecting-2-swf-from-the-same-html-page-how/65760/1 "2004-09-29T12:05:35Z")

</div>

Hello boyz and girlz.  
Time for me to ask for help :snif:  
Is it possible to connect 2 swf embeded in the same html page?  
Basically what I need is that when some button is pressed in movie1.swf it should execute a function in movie2.sfw.

Is that possible?  
Or even something like… to watch form each swf is something happens in other swfs.  
For 5 or more(not given a specific number of embeded movieclips in that page) swfs for instance to execute the same function if something (defined) happens in other swf.

I heard something about liveConnect but it doesn’t seem to be what I need… and I don’t know what should I look for.

---

<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 29, 2004, 12:36pm UTC](https://forum.kirupa.com/t/fmx-connecting-2-swf-from-the-same-html-page-how/65760/2 "2004-09-29T12:36:27Z")

</div>

yes it’s possible with LocalConnections…

here:

[http://www.actionscript.org/forums/showthread.php3?t=48342](http://www.actionscript.org/forums/showthread.php3?t=48342)

---

<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 29, 2004, 1:00pm UTC](https://forum.kirupa.com/t/fmx-connecting-2-swf-from-the-same-html-page-how/65760/3 "2004-09-29T13:00:51Z")

</div>

thank you vik for the hint. I was close but not close enough 😃  
Found some nice links if anybody else is interested:  
[http://www.actionscripts.org/tutorials/intermediate/LocalConnections/index.shtml](http://www.actionscripts.org/tutorials/intermediate/LocalConnections/index.shtml)  
and of course macromedia  
[http://www.macromedia.com/support/flash/action\_scripts/local\_connection\_objects/index.html](http://www.macromedia.com/support/flash/action_scripts/local_connection_objects/index.html)

Thanks again.

---

<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 29, 2004, 3:48pm UTC](https://forum.kirupa.com/t/fmx-connecting-2-swf-from-the-same-html-page-how/65760/4 "2004-09-29T15:48:32Z")

</div>

another question.  
Is it possible to submit the values of some variables in flash along with other variables in a html form together to the same actionfile.php? With a submit button, submit action I mean.

Or any work arounds?
