Creating a Flash document to connect to the server