Flex Performance Tips & Tricks

April 20th, 2011 10 comments

Evtim and I gave a presentation at 360Flex Denver this year about optimizing performance of item renderers and skins in Flex 4.5 applications.
Read more…

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…

Simulating an Android window shade in a mobile Flex application

December 12th, 2010 No comments

If you drag down from the top of an Android phone, you will get a pull down menu that exposes a set of buttons and options. This is sometimes referred to as a “window shade”, see this video for an example. This post demonstrates how to extend a spark SkinnableContainer to simulate this functionality in a mobile Flex application.
Read more…

Saving scroll position between views in a mobile Flex Application

December 5th, 2010 11 comments

In a mobile Flex application when you navigate to a new view the old view is destroyed. If you then go back to that first view then it is re-instantiated. If you have a List in that initial view then any scroll position changes the user may have done will be lost. This post demonstrates how to save and restore that scroll position when navigating between views.
Read more…

Grouping items in a Flex mobile List

November 30th, 2010 8 comments

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