(ZIP, 147 KB)StatesTransitionsCSS styles syntaxText Layout Framework
In order to make the most of this article, you need the following software and files:
Flash Builder 4ColdFusion 9 (optional)Sample files:Prerequisite knowledge
Familiarity with Flex 3 and some exposure to the Flex 4 framework is recommended.Permissions beyond the scope of this license, pertaining to the examples of code included within this work areavailable at Adobe.
Setting up the project
Before diving into the code for the application, you’ll need to install Flash Builder 4 (if you haven’t already) anddownload the sample files.ColdFusion 9 is not absolutely necessary for this article. Without it, however, you won’t be able to fullyexperience the new Data/Services features in Flash Builder 4. By default, all code pertaining to connectivitywith the server via RemoteObjects is within a separate component in the application or commented out. In thisstate, you can run the application without relying on the ColdFusion Components (CFCs) running onColdFusion 9 server. By default, the code uses an HTTPService component to acquire the XML data for theapplication, and there are a few other methods that use dummy data to make the application work. If youchoose, you can use the code as is and skip the next section on setting up ColdFusion 9.
Set up ColdFusion 9
If you want to use the full server-side functionality for this article, you’ll need ColdFusion 9 server installedlocally. To download and install the Developer edition, visit
.When installing ColdFusion, remember to make note of your RDS (Remote Development Services) usernameand password, as you’ll need them later.Once you install ColdFusion server, place a copy of the
file from the sample files in the
folder of your ColdFusion 9 install. The default folder on Windows is
and on MacOS X it is
. This CFC includes three methods that provide servicesfor the Flex intranet application.
Set up the project in Flash Builder 4
Follow these steps to set up the project:Download the sample files and unzip them to a directory on your computer.1.
Flex 4 sample application: Spark Intranet Sample App | Adob...http://www.adobe.com/devnet/ﬂex/articles/ﬂex4_sparkinc_sa...2 von 1122.03.10 22:26