Saturday, March 14, 2009

How to enable server in a Flex Project

Few days back I ran into a problem where I wanted to enable the server technologies in a pre-existing Flex project (A project in which server was not configured at the time of creation). In such projects when you right-click on the project inside project navigator and then click on Flex Server, you will find that everything is disabled!

Now what to do?

Should I create a new project with server configuration and then copy all the source file to that newly created project?

Sounds weird!!! There is not to do all those things, just a single configuration change.

Go to your project directory and open the .flexPeoperties file in a text editor and change the value of flexServerType to 1 (which is 0 by default.)

Save the file, close it. Now go back to your flex builder and again right click on your project, select properties and then select Flex Server.

Everything is enabled now and you can do your server configuration on the same project.

Do post your comments if you find it helpful.

Cheers!