Skip to main content

Posts

Showing posts from September, 2009

Laying out elements - Flex vs HTML

I recently developed a Flex application. Before everything else I wanted to layout things. I had a trial version of Flex Builder with me. Designing the layout with Flex Builder is very easy. I can simply drag and drop components and create the layout. But I wanted to use IntelliJ IDEA as my IED. The main draw back for using Idea was been not able to preview the layout in design time. The solution to this problem came in two parts. 1 Design the site in relative layout 2 Use Flex component explorer as a reference (http://www.adobe.com/devnet/flex/tourdeflex/web/) All most all the tutorials out there explains how to create absolute layouts. This is ok when we have Flex builder. But when we are not with this tool, it's not easy to visualize the layout when we create absolute layouts. So I experimented with relative layouts in “mxml”. It is almost the same as html/css relative layouts. You simply have to make sure layout=”horizontal” or layout=“vertical” is set in the A...