added a connectToContainerHost function to automatically set the URL the swf will connect to - only if the swf is hosted