# Help me with LocalConnection

**URL:** https://forum.kirupa.com/t/help-me-with-localconnection/22238
**Category:** flash
**Created:** [June 1, 2003, 3:27pm UTC](https://forum.kirupa.com/t/help-me-with-localconnection/22238 "2003-06-01T15:27:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![alippman](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alippman/32/231_2.png) [@alippman](https://forum.kirupa.com/u/alippman)
#### Post date: [June 1, 2003, 3:27pm UTC](https://forum.kirupa.com/t/help-me-with-localconnection/22238/1 "2003-06-01T15:27:11Z")

</div>

I have two SWF files on one HTML page - no frames. All I am trying to do i make it so when I press any button on my jukebox swf, it sends a stopAllSounds command to the swf animation playing next to it on the page. I can’t seem to get it to work. Please show me how to use the LocalConnection object and show me the actionscript for each movie. I have searched far and wide and tried to adapt actionscript but it won’t work.

Bonus question: in my jukebox, all my sounds seem to only play the first 5 seconds of each song when I publish the fla to a swf - however in the fla library - the full songs is loaded. Any ideas how to fix this?

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 1, 2003, 3:37pm UTC](https://forum.kirupa.com/t/help-me-with-localconnection/22238/2 "2003-06-01T15:37:19Z")

</div>

Is it in frames?

---

<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 1, 2003, 3:41pm UTC](https://forum.kirupa.com/t/help-me-with-localconnection/22238/3 "2003-06-01T15:41:22Z")

</div>

There are no frames - just two table cells on the same HTML page.

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 1, 2003, 3:48pm UTC](https://forum.kirupa.com/t/help-me-with-localconnection/22238/4 "2003-06-01T15:48:15Z")

</div>

hmmmm,  
why cant u have the stop all sounds button on the jukebox page?  
because im not to sure about sending commands to other swfs on one page. you could just make it one swf and have it load bolth of your swfs . Then the stop all sounds would work…  
[http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)

---

<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 1, 2003, 3:51pm UTC](https://forum.kirupa.com/t/help-me-with-localconnection/22238/5 "2003-06-01T15:51:02Z")

</div>

it can be done with LocalConnection… i just don’t know how to write the code…

thanks tho

---

<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 1, 2003, 3:56pm UTC](https://forum.kirupa.com/t/help-me-with-localconnection/22238/6 "2003-06-01T15:56:23Z")

</div>

ill look into it, sry if i wasnt anyhelp…
