Flash MX - send javascript variable to flash application

I’m still pretty new to flash, and I haven’t figured out the best (or any way) to accomplish this:

Get a variable from one application and call a function of another flash application using this variable value as a parameter - assume that both applications are embedded and loaded in an HTML page before the variable passing occurs. I’m using Flash 6 to develop this.

So far, I have been able to get the first half done using fscommand. I am able to use the passed variable in javascript. Now, I’d like to send it to my other application so it can update based on this variable.

There doesn’t seem to be much recent information out there about this (or I really suck at google searching) - is there a preferred way to do this now that is compatible with flash 6? If anyone knows of any tutorials or anything, please let me know. Thanks!

I would suggest using Flash Vars to pass in the variable from javascript then use Load Vars to pass the information from Flash to another application.

http://www.flash-db.com/Tutorials/saving/savingData.php