1. Download the FDSProjectTemplate.Zip
2. Unzip the FDSProjectTemplate.Zip into the ..\FlashDevelop\Data\ProjectTemplates\
3. Open ToolBar.xml located in ..\FlashDevelop\Settings\ and insert the following xml code before the closing
</toolbar>
tag.
<separator/>
<button
label =
"Launch App"
click =
"PluginCommand"
image =
"54"
tag =
"Run;SaveAll;ant launch"
shortcut =
"CtrlF7"
/>
<button
label =
"Distribute App"
click
"PluginCommand"
image
"28"
tag =
"Run;SaveAll;ant dist"
/>
<button
label =
"Refresh App"
click
"PluginCommand"
image
"10"
tag =
"Run;SaveAll;ant refresh"
/>
4. Launch Flash Develop.
5. Select Project->New Project from the menu bar.
6. Under "Installed Templates" select "Flex Data Service Project". Enter a project name and click OK.
7. From the Project Explorer open the build.properties file and customize it to fit your needs.
8. From the Project Explorer open the web.xml file.
9. Add "FDSProject.mxml" to the Welcome-File-List node. You can change the name of you FDS Project by modifing the app.name property in the build.xml file.
10. In the Project Explorer expand the "src" folder.
11. Under the "java" folder create the following directory structure com->gurufaction.
12. Open a new file from the file menu File->New.
13. Type the following code into the body of the new file.
package com.gurufaction;

public class HelloWorld
{
public HelloWorld()
{

}
public HelloWorld()
{
return "Hello From Remote Call!";
}
}
14. Save the new file as HelloWorld.java under the src->java->com->gurufaction directory. Check to insure that the file encoding is set to 8bits under File->Encoding.
15. From the Project Explorer open the remoting-config.xml located in the config->flex directory.
16. Type the following xml code before the closing
</service>
tag.
<destination
id =
"HelloWorld"
>
<properties>
<source>
com.gurufaction.HelloWorld
</source>
</properties>
<destination>
17. From the Project Explorer open the FDSProject.mxml file located in src->Flex directory.
18. Type the following code inside the
<mx:Script>
tag.
import mx.rpc.events.*;
import mx.rpc.Fault;
import mx.controls.Alert
public function faultHandler(event:FaultEvent):
void

{
Alert.show(event.fault.faultString,"Error");
}
public function resultHandler(event:ResultEvent):
void

{
Alert.show(event.result.toString,"Result");
}
19. Type the following code after the closing tag but before the closing
</mx:Application>
tag.
20. From the Toolbar click the Distribute App icon.
21. Flash Develop with execute the ant build file and create a FDSProject-0.1-dev.war located in the "dist" directory.
22. Deploy the FDSProject-0.1-dev.war on your tomcat server using the Tomcat Web Application manager.