# Help with turning off flash audio from html link

**URL:** <https://forum.kirupa.com/t/help-with-turning-off-flash-audio-from-html-link/263230>\
**Category:** Uncategorized\
**Created:** [June 13, 2008, 3:41pm UTC](https://forum.kirupa.com/t/help-with-turning-off-flash-audio-from-html-link/263230 "2008-06-13T15:41:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HekG](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@HekG](https://forum.kirupa.com/u/HekG)\
**Post date:** [June 13, 2008, 3:41pm UTC](https://forum.kirupa.com/t/help-with-turning-off-flash-audio-from-html-link/263230/1 "2008-06-13T15:41:20Z")

</div>

Hi guys, I have an audio player in a popup window and I would like to be able to turn it off with this command radioStop(); from an html link on the main 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 13, 2008, 4:45pm UTC](https://forum.kirupa.com/t/help-with-turning-off-flash-audio-from-html-link/263230/2 "2008-06-13T16:45:06Z")

</div>

[Search Google.](http://www.google.com/search?q=javascript%2Bflash&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a)

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [June 14, 2008, 6:40pm UTC](https://forum.kirupa.com/t/help-with-turning-off-flash-audio-from-html-link/263230/3 "2008-06-14T18:40:12Z")

</div>

[http://www.1pixelout.net/2006/12/15/cross-window-javascript-communication-20/](http://www.1pixelout.net/2006/12/15/cross-window-javascript-communication-20/)

see this… on how to call a javascript function in a popup window from main window.

then study the ExternalInterface class of flash as to how to call actionscript functions from javascript.

next set up a function in javascript that calls flash function to stop playing.

setup a function in flash that javascript will call.

now… main window will call the function of javascript popup -\> popup function will call flash function to stop playing - \> player will stop

---

<div class="post-metadata">

**Author:** ![HekG](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@HekG](https://forum.kirupa.com/u/HekG)\
**Post date:** [June 16, 2008, 3:23am UTC](https://forum.kirupa.com/t/help-with-turning-off-flash-audio-from-html-link/263230/4 "2008-06-16T03:23:36Z")

</div>

excellent. Thank you sparkdemon!
