Calling a jsp function from within flash

any1 knows how it is done?
b4 i go to my 2nd scene…i need to call a jsp function and update the dbase…then proceed to my 2nd scene