Mobile applications often have lists that group items in some way. For example, a contact list might group names by the first letter of the contact’s first name. This post demonstrates how to write a Spark ItemRenderer to simulate this behavior.
Continue reading Grouping items in a Flex mobile List
Checking if an element is included or excluded from the current state is a little more involved than just checking the visible property. This post demonstrates a method that returns true when the element is included in the current state.
Continue reading Checking if an element is included in the current state in Flex 4
This post demonstrates one way of creating a simple wave effect on items in a DataGroup. A post on polyGeek.com reminded me of an old sample I had laying around that was kind of interesting.
Continue reading Simple wave effect on items in a DataGroup
This is an example of a spark List with a custom item renderer that looks like a stacked bar chart.
Continue reading Using a spark List to simulate a stacked bar chart
Flex 4 has been released. This is a major release of Flex that introduces some new features that allow you an amazing amount of flexibility and power in building killer internet applications.
Continue reading Introducing Flex 4
The spark BitmapImage component only supports embedded images in Flex 4.0. This post shows how you can get around that limitation by loading an image via a SWFLoader and then pushing that bitmap data into the BitmapImage’s source property.
Continue reading Using non-embedded images in a spark BitmapImage
How Flex treats strokes on GraphicElements can be a little tricky. This post explains how the stroke of a GraphicElement contributes to the measured size of a spark Group.
Continue reading Measuring a GraphicElement with a Stroke in a Group
This post goes over the basics of writing a very simple custom layout that supports virtualization in spark. It assumes that you have already built a custom layout that handles the real (non-virtual) case and are comfortable doing so.
Continue reading Learn how to create a simple virtual layout in Flex 4
The default spark List will add a horizontal scroll bar when the contents of the List are wider than its width. This post shows how to change that behavior using a custom item renderer so that a truncation mark like an ellipsis is used instead.
Continue reading List with truncation instead of a horizontal scroll bar
The ItemRenderer class in Flex 4 has an itemIndex property that was added after beta2. You can use this property within your item renderer to display the row number or index of an item in a spark List.
Continue reading Displaying the row number or index in a spark List