Flash can not access directly to a database server, necessarily need a server side language like PHP, ASP. and necessarily need to use sendVars() and loadVars().
Finally found a piece of documentation from Adobe that was very well-hidden for no obvious reason:
My predecessor had set up a minute log function using this class, but more functionality had to be added to that function. I don't know why, but Google really failed miserably when trying to find the documentation for that class.