Download Flash 6 player from here if you don't have it. It even works on Linux!
This is an example accessing a mysql database on the server side (taken from AMFPHP). This is the server-side Perl script park.pl. This is a sample service ParkService.pm.