# Sending variables to from javascript to flash during runtime

**URL:** https://forum.kirupa.com/t/sending-variables-to-from-javascript-to-flash-during-runtime/263420
**Category:** flash
**Created:** [June 15, 2008, 9:49pm UTC](https://forum.kirupa.com/t/sending-variables-to-from-javascript-to-flash-during-runtime/263420 "2008-06-15T21:49:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dataxa](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@dataxa](https://forum.kirupa.com/u/dataxa)
#### Post date: [June 15, 2008, 9:49pm UTC](https://forum.kirupa.com/t/sending-variables-to-from-javascript-to-flash-during-runtime/263420/1 "2008-06-15T21:49:42Z")

</div>

I have done lots of communication between flash, javascript and php but never this. I need to send variables to flash when it is already playing. I know that it is possible to send variables to flash right before loading flash and flash can load variables during runtime and flash can send variables but can i send variables to flash? I don’t remember if i have done this, but one thing is for sure that i don’t remember thus i don’t know if it’s possible.

---

<div class="post-metadata">

### Author: ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)
#### Post date: [June 15, 2008, 10:55pm UTC](https://forum.kirupa.com/t/sending-variables-to-from-javascript-to-flash-during-runtime/263420/2 "2008-06-15T22:55:11Z")

</div>

**ExternalInterface.addCallBack** to get variables from javascript into actionscript  
**ExternalInterface.call** to send variables from actionscript to javascript

Check the Help files on both of the above or see an additional example here:  
[http://kb.adobe.com/selfservice/viewContent.do?externalId=tn\_15683](http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15683)

---

<div class="post-metadata">

### Author: ![dataxa](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@dataxa](https://forum.kirupa.com/u/dataxa)
#### Post date: [June 16, 2008, 11:18am UTC](https://forum.kirupa.com/t/sending-variables-to-from-javascript-to-flash-during-runtime/263420/3 "2008-06-16T11:18:41Z")

</div>

Exactly the thing i needed! Thank you!
