Connect function only working from Test Movie

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Nelagend
Posts: 9
Joined: 08 Aug 2010, 18:09

Connect function only working from Test Movie

Post by Nelagend »

I'm having a strange problem compiling a SmartFoxServer program in Adobe CS3, and I suspect it's something silly in my settings. I can successfully load my custom config.xml file and save the server preferences to variables within the program (ip 127.0.0.1 for now, port 9339). Then, when I get to:

lb_connStatus.text = "Running connection function."
sfs.connect(ip, port)
lb_connStatus.text = "Trying to connect."

If I use "test movie" within Adobe CS3, it successfully connects and goes to the rest of my program.

If I "publish" the program, it changes lb_connStatus's text to "Running connection function." and then hangs up without connecting or running the second text command.

What could I have screwed up that would allow it to work from "Test movie" but not from "Publish"?
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Flash Security may be the reason here. Try going to http://www.macromedia.com/support/docum ... nager.html and add the path to your project folder inside Global Security to "Always trust files in these locations" list.
Smartfox's forum is my daily newspaper.
Post Reply