# Getting data from javascript to flash

**URL:** <https://forum.kirupa.com/t/getting-data-from-javascript-to-flash/163027>\
**Category:** Uncategorized\
**Created:** [September 19, 2005, 5:14am UTC](https://forum.kirupa.com/t/getting-data-from-javascript-to-flash/163027 "2005-09-19T05:14:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ironikart](https://avatars.discourse-cdn.com/v4/letter/i/7feea3/32.png) [@ironikart](https://forum.kirupa.com/u/ironikart)\
**Post date:** [September 19, 2005, 5:14am UTC](https://forum.kirupa.com/t/getting-data-from-javascript-to-flash/163027/1 "2005-09-19T05:14:43Z")

</div>

Hi All,

It’s been a while since I posted, but now that I’m starting to deal a little more with flash I’m hoping I might be able to find a little help.

I’ve built a little test setup that uses ajax to get my data from flash-\>javascript-\>php-\>mysql and back to javascript. I’m hoping to port my poor little web based role playing game into a more effective GUI with drag+drop, animations and all that other good stuff that flash allows.

Using fscommand() I can send the stuff to my Ajax client no problems. Works a real treat. But fscommand() returns nothing.

My question is… Am I stuck having to send of a LoadVars request to another php script that’s generating XML or formatted vars, or is there a way to tell javascript to pass data directly back to the flash movie?

Thanks in advance!
