
Note: This article was created based on Flex 4 beta 1. However it still applies to Flex 4 beta 2.
Spark, the new component and skinning architecture in Flex 4 beta, brings a lot to the RIA table and addresses a number of pain points in skinning, CSS, components, states, animation, text, graphics tags, layouts, and more.
In this article I'm going to focus on Spark layouts. I will provide an overview of the major architectural differences between Spark and Flex 3 layouts. After a brief discussion of usage differences I'll step through creating a custom Spark layout—a simple flow layout class.
Throughout this article the term Halo refers to layouts, components, and the general architecture of the Flex 3 framework. The term Spark refers to layouts, components, and the general architecture introduced with Flex 4 beta.
In order to make the most of this article, you need the following software and files:
This article assumes knowledge of the Flex 3 Framework.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
Evtim Georgiev has worked as a Flex SDK Computer Scientist since early 2008. Previously, Evtim worked at Microsoft on the PowerPoint application and developed CGI fluid dynamics software for a Bulgarian startup company.