This article will
guide you through the process of creating and running a remoting-enabled Flex application using Flex Builder 2.0. At the end of the walkthrough you will have a
Flex application communicating with a .NET object
exposed through WebORB.
Run Flex Builder
2.0 and select File -> New -> Flex Project.
The
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. Clear the checkbox and enter the path to the folder
containing the WebORB installation into the "Root folder" text field.
The default location is "C:\Inetpub\wwwroot\weborb30".
The "Root URL" text field must contain a URL
of a weborb-enabled ASP.NET application. The URL
of the default installation is http://localhost/weborb30. The paths shown in
the image below assume WebORB is installed in the /weborb30 virtual directory
(default location):
Click
"Next >" to continue.

The next step is to assign a name to the Flex project.
Enter "SampleFlexToDotNetProject" as the name and
click "Finish" to finalize the creation of the project.

Flex Builder creates an empty Flex application. The steps below
will guide you through adding MXML/ActionScript code and connecting it with a .NET
object.
This article 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 .NET 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 "ASP.NET" 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. Select "Use Internet Information Services" and enter the
paths for a weborb-enabled virtual directory. The paths shown in
the image below assume WebORB is installed in the /weborb30 virtual directory
(default location):

Click "Finish" to continue. Flex Builder creates an
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:\Inetpub\wwwroot\weborb30\web-inf\flex\services-config.xml
IMPORTANT: If you plan to use WebORB Rel-time Messaging features like MSMQ integration,
data push, video streaming, make sure to reference weborb-services-config.xml

Click OK to close the window.
You may receive the following error in
the "Problems" window:
Channel
definition, weborb.messaging.WeborbMessagingChannel,
can not be found.
To remove the error, open project
properties and select "Flex Build Path". Open the
"Library Path" tab and click "Add SWC..". Use the Browse
button to select to the following file:
/Inetpub/wwwroot/weborb30/weborbassets/wdm/weborb.swc
The steps below will guide you through adding MXML/ActionScript
code and connecting it with a .NET object.