| By Mary McDonald | Article Rating: |
|
| August 29, 2006 10:00 AM EDT | Reads: |
13,284 |
We'll walk through the following steps to write our first Flex application.
- Install the free Eclipse integrated development environment
- Install the Flex Builder 3 plug-in for Eclipse
- Write the application
- Test/debug the application
When you set out to write your first Flex application you'll have to choose what tool you'll use to write it with. Currently the most popular tool to use is the free Eclipse IDE. If you don't have Eclipse installed go to http://www.eclipse.org/ to install it. You'll need to install Eclipse 3.1 to use Flex 2 Beta 3.
Select the Downloads link
Select the Eclipse SDK 3.1.2 for Windows to download, if you have Windows.
Eclipse can be used with many operating systems. I'll be using Windows XP with the Sun Java 2 Standard Edition Platform version 1.4.2_08 for Microsoft Windows. See the Eclipse readme_eclipse.html for more information.
There are various plug-ins available for Eclipse. There's a Flex plug-in we'll install so we can use Eclipse to write our Flex app. The Eclipse plug-in for Flex is included in the Flex download. Go to http://labs.adobe.com/ to download the Flex 2.0 Beta 3.
Open the Eclipse IDE by clicking the Eclipse icon.
Eclipse will ask you where you want your workspace to be located. Just leave it in the default directory for now. Press OK.
We have to install the Flex Plug-in into Eclipse. I downloaded the Flex Builder 2 Beta 3 and selected the install option.
I'll choose the Flex Builder plug-in and Flex SDK option to install Flex Builder as an Eclipse plug-in.
Press the Unpack button to unpack to a temporary installation area.
Press the Next button.
Accept the license.
Accept the default directory to install the Flex Framework.
The My Eclipse folder is in my desktop, so that's where I installed the Flex plug-in.
After you press OK, the path to the Eclipse plug-in is entered. Press Next.
You'll have to install Flash Player 9.0 to view applications developed with Flex 2 for the browser of your choice.
Check your pre-installation summary to verify that everything is correct then press the Install button.
Once installed, you'll get a message that the software has been successfully installed.
Open the Eclipse program. Make a note of the default workspace where Eclipse will be looking for your applications or choose a directory where you want Eclipse to look for your applications.
To verify that the Flex Builder 2 Beta 3 plug-in was installed, select Help/Software Updates/Manage Configurations.
You should see the Flex Builder 2 Beta 3 plug-in zorn.feature.core 2.0.340.
Open a new project in Eclipse.
Under Flex, select Flex Project and press the Next button.
We won't use any Flex server technology for this application, so select the Basic radio button and press the Next button.
Name the project and press the Finish button. I called mine MyFirstFlex2Beta3App.
Enter the Flex Builder 2.0 serial number or select Try to try Flex Builder.
Select OK to switch to the Flex Development Perspective.
Flex defaults to the Source view. Select the Design tab to switch to the Design view.
In the Design view locate the Panel component under the Components tab on the lower left and drag the Panel to the stage.
In the Flex Properties tab on the lower right, type in myPanel next to the id field under the General area. Next, locate the ControlBar component on the lower left and drag it to the bottom of the Panel.
Next to the id in the Flex Properties type myControlBar in the General area.
Locate the Button component under the Controls folder on the lower-left Components tab. Drag the Button component and put it over the ControlBar component.
Published August 29, 2006 Reads 13,284
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Mary McDonald
Mary McDonald has served the last four years as the Northern Indiana Adobe Users Group Manager (see www.ninmug.org), has attended many conferences including CFUNITED, MAX, MXNorth and TodCon. Out of her 16 years working as a software developer, Mary has worked the last 6 years with ColdFusion, SQL, Flash, and Flex and is a Certified 5.0 ColdFusion Developer. Mary's other interests include music, photography, traveling, dogs, and most recently Tai Chi.
![]() |
George Lu 09/15/06 01:54:00 AM EDT | |||
Thanks! That's what I want. The original code with 'srv.result.catalog.product' has error. But where does 'lastResult' come from? >>> QUOTE: |
||||
![]() |
bigbadken 09/06/06 11:06:57 AM EDT | |||
Catalog.xml: It's located in the samples folder under the Flex Builder 2 Plug-in folder. For me, that was C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\samples\flexstore\data\catalog.xml. -FYI- <mx:DataGrid width="100%" height="100%" dataProvider="{srv.lastResult.catalog.product}"/> |
||||
![]() |
Greg C 09/04/06 05:28:19 PM EDT | |||
I can not find the Catalog.xml that I am suppose to copy to the BIN folder. The quote below says that it is currently in my Application folder.... nope... it is not... in fact I don't even have a bin folder. The walk through has be great until now when it refenced a file I can't find. Please send me the file... or let me know where I can download it, etc. >>> QUOTE: |
||||
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Adobe Reader Sued
- Adobe May Cooperate with Apple to Transplant Flash Player to iPhone
- Adobe Flex Developer Earns $100K in New York City
- Adobe LiveCycle Enterprise Suite 2 for Cloud Computing
- Adobe Cans Another 9% of its Workforce
- Adobe Betas Target RIAs and Cloud Computing
- Adobe MAX 2009 Online
- Thinking of Flex in London
- Moyea DVD4Web Converter V2.0 Converts DVD to FLV Fast and Synchronously with Watermarks
- Adobe & Salesforce Cut Cloud Deal
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Eval JavaScript in a Global Context
- Fig Leaf Software to Exhibit at Government IT Conference & Expo
- Is Microsoft as Free as Open Source?
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Adobe Reader Sued
- The Planet Named “Bronze Sponsor” of Cloud Computing Expo
- Microsoft Expression Web Has Got Game
- Adobe May Cooperate with Apple to Transplant Flash Player to iPhone
- Bruce Chizen Joins Voyager Capital as Venture Partner
- My Top Seven Wishes From Adobe MAX 2009
- Adobe Flex Developer Earns $100K in New York City
- The Next Programming Models, RIAs and Composite Applications
- Where Are RIA Technologies Headed in 2008?
- Constructing an Application with Flash Forms from the Ground Up
- AJAX World RIA Conference & Expo Kicks Off in New York City
- CFEclipse: The Developer's IDE, Eclipse For ColdFusion
- Personal Branding Checklist
- Adobe Flex 2: Advanced DataGrid
- Has the Technology Bounceback Begun?
- Building a Zip Code Proximity Search with ColdFusion
- i-Technology Viewpoint: We Need Not More Frameworks, But Better Programmers
- The Asynchronous CFML Gateway
- Web Services Using ColdFusion and Apache CXF



































