Initiate php/javascript/ajax function from flash ^-^

Hello, I’m very sorry if this question has already been answered, but is there any simple way to initiate a php, javascript and/or ajax function from within a flash app embeded into a page?

IE: when the user uses a flash login, to login to the site, could i make a java/pph or better yet ajax call to update the HTML of a blank div (javascript updateHTML command) with “events” (ie - you have 2 messages) from a mySQL database, without the need of a page refresh? ^-^

Try saying that fast =B

Thank you, for reading and thank you more if you can comment/point me in any direction XD

I thought; upon user loggin, I could send a “loggedIn” var (for example) with POST to a php page (havnt worked out ajax yet =B) that if loggedIn = true; query mySQL, then update the div with javascripts updateHTML command.

Would there be a better way? ^-^

`kormyen