Saving data using flash

I am trying to make a flash file save data such as player lvl, xp lvl, etc, to a mySQl database so that when a person logs on again the data gets loaded with the correct amount of xp, is there any way of doing this?