Difference between executing SWF methods?

Hi guys,

I made a socket client (in AS3.)

If I use ctrl-enter within CS3 to run it everything is fine, but if I run it outside CS3 (either double-click the .swf file or put it in a local web page) it doesn’t work.

What’s going on ?