以往director要读写数据库除了使用数据库相关的xtra以外,还可以使用 getNextText 或 postNetText来进行,自从有了 flash remoting技术以后,我们也可以利用这个技术来进行数据库读写。你可以在director中插入一个写好连接远端remoting服务的flash文件,把要写的数据传递给flash去call远端remoting服务即可。
本次主要使用php版本的remoting服务器amfPHP来讲解。假设你已经安装好了amfPHP环境,amfPHP可以查询www.amfphp.org获得相关信息。