Flash - > Browser Without Page Reload

Hey there!

I’m just curious, is there any way… Or how could I get a Flash File to call a Javascript Function / Send a Variable back to a browser which Javascript could read?

Basically working on something where as, currently at any moment during the web page is open Flash receives a variable… Needs to process that, then call a Javascript Function in the page or if this can’t be done, sends a variable back to the page which javascript will listen for every 500ms or something like this…

Anyone know please :D?