Simple Introduction: Flash Builder & Flex 4
( August 7th, 2010 )As a first step I want to get something to run and have a basic idea of the environment I’ll be working in.
Here’s a quick summary of the steps I followed:
- Create a new project and inspect the resulting project / package / class files
- Play around with the new versus old Flex components
- Try different skin templates
Create a new project
- Open FlashBuilder and create a new Flex project (File > New > Flex Project)
- In the configuration popup give your project a name and change and change the default settings if you wish
In the package explorer panel have a look at the project tree, the main folders / files you are interested in is
- src – contains the source / class files
- bin – contains the compiled .swf file + a generated .html file that displays your swf
Play around with the new versus old Flex components
First, lets start with layout components. In the new Spark component set, layout logic has been decoupled from the component. One can set the layout of a component declaratively in the mxml (as a property) and can change it at runtime. Layout containers in Spark deal solely with layout and are therefore more lightweight. This does mean that one cannot set visual drawing properties such as background. They do support layout-specific properties such as padding.
- Canvas vs. Group: Group is a simple wrapper that implements BasicLayout, which is absolute positioning and supports padding
- HBox & VBox vs. HGroup & VGroup: HGroup & VGroup are extended from Group and use the HorizontalLayout & VerticalLayout
|
Posted in ActionScript 3.0, Flex | |





