MXML

Basic Flex List Row Item Styling


Posted in:

Styling is one of those things in Flex that you could write 1,000 different posts on and never quite cover it all. Even more specific is styling the data you see in lists and DataGrids. This tutorial is about how to change the styleName property of list items in a Flex list depending on the data in the List.

Read More Icon Read More

Flex Datagrid Percentage Width Columns


Posted in:

I have a multitude of tutorials on the Flex Datagrid here at Switch On The Code and none of them show you how to use percentage widths in your Datagrid. Now at the surface this seems really easy, but the way they implemented it in Flex is very unintuitive. So, today I am going to show you how to quickly get percentage based columns in your datagrid.

Read More Icon Read More

Flex DataGrid Custom Sorting


Posted in:

The Flex DataGrid is a very powerful and useful component but there are some things that it just won't do out of the box. One of the features that is built in but not used by default is custom sorting functions. The DataGrid will sort most basic object types by default, but if you have a complex object that you need to sort it has to be done using a custom function. This tutorial is going to show how to build and use a custom sorting function in a DataGrid.

Read More Icon Read More

Flex & PHP - Creating WoW Armory Search Widget


Posted in:

One of the neat things about World of Warcraft is the amount of data freely available. Between sources like Thottbot, Wowhead, and WoW Armory you can find information on just about anything in the game. The WoW Armory is even more interesting because it sends all of its data to the browser in xml. This makes it really easy to consume this data through web requests. This tutorial is about building a small application that searches the Armory for items.

Read More Icon Read More

Flex DataGrid Adding Rows using a Popup


Posted in:

When working with Flex one component almost always shows up, the DataGrid. Now it may not just be the DataGrid but any List based control. It is rare that I create any type of data driven application and not use one of these controls. Along with displaying information it is also useful to be able to add data. Today, I am going to go over a method that can be used for this task. The way we are going achieve data insertion is by using a popup that will hold a simple form to fill out.

Read More Icon Read More

Flex HTTPService - Retrieving Data From Flickr


Posted in:

There are many ways to retrieve data in Flex, one of the easiest and most used methods is utilizing the HTTPService component. Explaining how to use this object to gather photos from Flickr is exactly what this tutorial is about. Included is an explanation of how we can send requests and handle their results using simple http web requests.

Read More Icon Read More

Adobe AIR and Flex - Saving Serialized Objects to File


Posted in:

When creating any desktop application there is almost always a time when you need to store data on the computer. Now with Adobe AIR we have several options. One would be that we could use the built-in SQLite database support, for a small amount of data this is overkill. Another option is that we could turn the data into XML and write out to a file, the problem with this is that we we have to write some kind of decoder if we want a typed object. There is yet another option we have in Adobe AIR, we can serialize the object into a byte array and write it out to a file.

Read More Icon Read More

Showing the Hand Cursor in Flex


Posted in:

Sometimes in Flex the simple things are more obscure than they should be. This is the case for making a hand cursor show up for a button or label or practically any other component. Now this is a fairly easy thing to do, you just need to know exactly what attributes to set on the component.

Read More Icon Read More

Adding Dynamic Rows To Flex DataGrid


Posted in:

One of the many things people want to do when using a DataGrid is adding new rows to the data. Now this can be done a bunch of different ways. One method is using a popup to handle adding items to the collection the grid is bound to. Another method is to add another row directly into the grid. This tutorial is going to focus on the second of the above methods.

Read More Icon Read More

Flex DataGrid Selected Row Styling


Posted in:

So in my previous tutorial I had an example on how to change a selected row's styling. At the end of that article I said there is a better way to do this, well today I am going to show that better method. This tutorial is going to to show a good method for changing just about anything on a selected row in any list based component.

Read More Icon Read More

Sponsors