# AS3 - XML Socket only works during compile..?

**URL:** <https://forum.kirupa.com/t/as3-xml-socket-only-works-during-compile/203060>\
**Category:** flash\
**Created:** [October 7, 2006, 12:01am UTC](https://forum.kirupa.com/t/as3-xml-socket-only-works-during-compile/203060 "2006-10-07T00:01:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignitrix](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ignitrix/32/2664_2.png) [@ignitrix](https://forum.kirupa.com/u/ignitrix)\
**Post date:** [October 7, 2006, 12:01am UTC](https://forum.kirupa.com/t/as3-xml-socket-only-works-during-compile/203060/1 "2006-10-07T00:01:08Z")

</div>

I wrote a Flash AS 3.0 Preview .fla & .as files that establishes a connection with a C++ server app via an XML Socket. Everything works great when I start the .swf file within Flash 9 Public Alpha by pressing [CTRL]+[ENTER]. But if I close the exported .swf file, and immediately open the file with the standalone Windows Flash 9 Player (I tried it with the player that comes with the Alpha preview and the brand new Player released on Oct 4 on Adobe Labs), no connection to the server is established. What gives?
