mercoledì, settembre 03, 2008

AS3: Filtering Data in the DataGrid Component

I recently asked the expert folks at Kirupa about this, but ended up finding an answer navigating Google for several hours. I’ll post my findings here, in case anyone is scouring the web on this issue.

Adobe has a very nice article on how to filter data in the datagrid component. However, the example only sorts from left to right. Example:

Consider this array: “one, two, three.” Searching for “On” will produce “One.” But what if I want to filter by “ne?” Enter the following better tutorial on franto.com. (It’s intended for Flex, but easily ports to Flash, too.)