Flash API Connection creating