ErlendHL 0 Junior Poster in Training

Hi! I am testing AJAX, and I have just made a nice AJAX function. But I also want to use AJAX through Flash, so that I can get updated info from a .txt file on my server to the Flash movie.
Here is the AJAX test page.
So I can send data this way now:
Server-->php-->JavaScript
JavaScript-->php-->server

But I want to do it this way:
Server-->php-->JavaScript-->Flash
Flash-->JavaScript-->php-->server

So the only thing I am asking for, is how to pass variables from JavaScript to Flash and opposite (AS2).

Please Answer, thank you! :)