Create a new Flex Project

Set project location and project name

![]() |
We are using the specified directory structure in the Folder box, where the Flex project is stored in the "Flex" subfolder of the .NET Web Site project This directory structure is not mandatory but if you change it then you will have to update the rest of the settings accordingly. |
Set Output Folder URL

![]() |
Output folder URL is used to specify the server location of the compiled application files. It is optional but you should set a valid URL if you plan to debug from Flex Builder. |
![]() |
If Output folder URL is set then you must run your .NET web application prior to launch the Flex application from Flex Builder (as the compiled swf file is served via the web server). |
In our sample setup the Visual Web Developer Web Server is running on port 2980 (check the Web Site properties for the port number). The context root is "WebSite1" (the web application root). The "Flex\bin" path is where our Flex application is compiled by default.

In this sample setup the complete URL to our Flex application becomes "http://localhost:2980/WebSite1/Flex/bin/MyFlexApp.html" (this is the URL you will see when running the application from Flex Builder).
Flex Compiler settings

Set the service configuration file: -service "Path to your asp.net application folder\WEB-INF\flex\services-config.xml"
Set the context root: -context-root "/your asp.net application root(name)"