The instructions below will guide you through the process of creating and running a remoting-enabled Flex application using Flex Builder 3. At the end of the walkthrough you will
have a Flex application communicating with a PHP object exposed through WebORB.
Run Flex Builder 3 and select File -> New -> Flex Project. The dialog window shown below will appear. Enter "SampleFlexToDotNetProject"
as the project name. Make sure to select "PHP" as the Application server type. Make other selections as shown
below and click "Next >".

The next step is very important as it establishes the
configuration paths. For the simplicity of instructions,
assume WebORB is installed in the
c:\dev\WeborbPHP\
folder. The WeborbPHP folder is also mapped as a virtual
directory in the webserver. There are two paths to
specify in the next step: Web root and Root URL:
Web root - this is a directory that contains an
installation of WebORB.
Root URL - this is a URL corresponding to the
"Web root" directory.

Click "Finish" to continue. Flex Builder creates a default (blank) Flex application.
Right click the project node in the "Flex Navigator" panel and open Properties. Select "Flex
Compiler" and enter the following parameter into the "Additional compiler arguments" as shown in
the image below:
-services c:\[WEBORB_PATH]\Weborb\web-inf\flex\services-config.xml
In case when WebORB is installed in c:\dev\WeborbPHP,
the path would be:
-services c:\dev\WeborbPHP\Weborb\web-inf\flex\services-config.xml

Click OK to close the window.
Start Flex Builder
2.0 and select File -> New -> Flex Project. A
dialog window shown below will appear. Make the
selections as shown below and click "Next >".

The next step is very important as it establishes the
configuration paths. Uncheck the 'Use default
location..' checkbox. The 'Root folder' field must
contain the path to the /Weborb folder from the WebORB
for PHP distribution. The 'Root URL' field must contain
a URL pointing to the same /Weborb folder:
Click
"Next >" to continue.

The next step is to assign a name to the Flex project.
Enter "SampleFlexToPHPProject" for the
project the name as shown below and click 'Next' to
continue.

The final step in Flex project creation is to set the
output folder path and output folder url. Both of these
values must point to a folder in the web server
hierarchy. It is important that both 'Output folder' and
'Output folder URL' point to the same directory.
Click 'Finish' to finalize project construction.

Flex Builder creates an empty Flex application. The
steps below will guide through building a Flex
application and connecting it with a PHP object.