Archive

Archive for the ‘Flex 4’ Category

Scrolling to the bottom of a spark List

February 13th, 2011 4 comments

Scrolling to the bottom of a spark List after adding an item can be a little tricky especially when adding multiline text. This post demonstrates how to do it using a chat pod as a sample use case.
Read more…

Checking if an element is included in the current state in Flex 4

June 15th, 2010 1 comment

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.
Read more…

Simple wave effect on items in a DataGroup

April 11th, 2010 2 comments

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.
Read more…

Using a spark List to simulate a stacked bar chart

March 28th, 2010 1 comment

This is an example of a spark List with a custom item renderer that looks like a stacked bar chart.
Read more…

Introducing Flex 4

March 22nd, 2010 7 comments

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.
Read more…

Using non-embedded images in a spark BitmapImage

March 17th, 2010 5 comments

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.
Read more…

Measuring a GraphicElement with a Stroke in a Group

March 14th, 2010 3 comments

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.
Read more…

Learn how to create a simple virtual layout in Flex 4

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.
Read more…

Memory Graph to track Flash Player total memory usage

February 21st, 2010 9 comments

Sometimes it’s nice to keep an eye on the memory of an application without involving the Flash Builder profiler. This post demonstrates a simple and lightweight component that graphs the value of the Flash Player’s System.totalMemory over time. The chart can be very useful for noticing spikes in memory that might require further investigation with the profiler.
Read more…

List with truncation instead of a horizontal scroll bar

February 15th, 2010 12 comments

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.
Read more…