Hi,

suggest to look at tools that already create swf, like ming, mtasc. There is even a php only library (a bit slower on the server, but one does not have to bug the hosting company about...