Posts Tagged ‘Smartfox’

Smartfox Server-Chapter 02-Connection with Server

October 1st, 2010 by aabhaanjan

Establish connection with server

To make connection between server and client we need three most important parts :

IP : IP of system where smartfox is Installed.

Port : Port number by default it is 9339.

Zone : name of zone where you want to make the connection.

At first I would like to suggest you to make a config.xml file which will have above three essential parts in the form of their node. Now the first question will come in your mind why XML when we can declare it inside the action script code ? So answer is it will make your life easy. During the various stages of development you will need to change the IP at that time it will be easy to modify it from outside. Therefore here I have used the same way and created this config.xml.


Now what we need to do with Action script to establish the connection? Create a screen with a dynamic text box where we will show the status of connection.


Now create a document class : Paste following codes :


In above code we are importing the packages of smartfox then we are calling two smartfox event “onConnectToSFS” and “onConnectionLost” which will show the status of connection. Now by using “LoadConfigData” function we are loading the config.xml. On config loaded we are getting the IP,Port and zone by using this we are calling the function connectToSfs where we are sending request for connection to the server. If connection will succeed the text box will show the message “Connected”. On connection loss the text box will show the message “Disconnected”.


Now lets move to the next chapter where we will discuss detail about the config structure . We will discuss what is the meaning of other nodes of above structure.

Previous Chapter :                                                                                                                                                                                            Next Chapter :

Tags: , , , , , , , , , , , , , , , , , , , ,

SmartFox server Chapter- 01-Inroduction and Installation

March 21st, 2010 by aabhaanjan

Starting with SmartFox Server after its Installation :

Go to Program files then SmartFoxServerPro_1.6.6 you will see list of items of Smartfox

Admin : From where you can handle all the events and can see the server status.

Docs: Where you can find the documents of Smartfox , you can find here all the detail and

Helpful  material.

Server :  From where you can edit and Install/Uninstall Services.


Examples : A lot of examples are stored here . J

Flash API : API of AS2.0  and AS 3.0 are stored here.

How to change the IP

Open Edit Config as per given figure :

Server Config

After opening config you can change the IP as example given below.

change IP

Changing the admin login and password .

change password

Opening Admin panel: When you will open the admin  panel you will be able to see login credential fields , where by entering correct Username and password you will be able to enter into the admin panel.



Inside the admin panel you will be able to see below mentioned figure. It have various components .


Zone browser :

It will show all the created  zones and associated rooms detail.


Ban Manager : From where you can see the Banned User and IP details.


Logs : Here you will find all the  written record of messages sent or received and activity done by the



Extension manager :

Here you can see and edit all used extensions .


Keep watching coming soon , with next chapter 🙂

Next Chapter

Tags: , , , , , , , , , , , , , ,