Battlefarm example problem

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Post Reply
ynkm169
Posts: 5
Joined: 31 Mar 2012, 19:36

Battlefarm example problem

Post by ynkm169 »

I open index.html to test Battlefarm. It doesn't work. It shows "Not connected". Server log does not show any client connection attempts.
When I build the client and open the swf file, it doesn't work. It shows "Not connected". Server log does not show any client connection attempts.

However, when I test movie by running the game in flash IDE, it works.

What might be the problem?

Also, how do I test multiple clients? Because I can only debug one flash movie at a time, when I test a second client in browser, I can't potentially see any problems because it is not in debug mode and I can't see any trace printout. I don't have access to source code so there seems to be no way for me to debug it.

Help?


//my config file:
<SmartFoxConfig>

<!-- Mandatory Settings -->
<ip>127.0.0.1</ip>
<port>9933</port>
<zone>BattleFarm</zone>
<!-- End Mandatory Settings -->

<debug>false</debug>

<httpPort>8080</httpPort>
<useBlueBox>true</useBlueBox>
<blueBoxPollingRate>200</blueBoxPollingRate>

</SmartFoxConfig>
Last edited by ynkm169 on 31 Mar 2012, 19:53, edited 1 time in total.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Battlefarm example problem

Post by rjgtav »

Hello.
Well, it looks like you're having some playback security problems. I suggest you to go to Control Panel (Windows), and edit the Flash Player Settings. There, you go to the Advanced tab, click on the Trusted Location Settings and add the folder where the BattleFarm swf is located. Finally, save all those settings, and the example should start connecting successfully to the server.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
ynkm169
Posts: 5
Joined: 31 Mar 2012, 19:36

Re: Battlefarm example problem

Post by ynkm169 »

rjgtav wrote:Hello.
Well, it looks like you're having some playback security problems. I suggest you to go to Control Panel (Windows), and edit the Flash Player Settings. There, you go to the Advanced tab, click on the Trusted Location Settings and add the folder where the BattleFarm swf is located. Finally, save all those settings, and the example should start connecting successfully to the server.
Great! Thanks.
Post Reply