keithlee's blog

I, like many others, have run into this problem. It seems that the rotation property (from Display Object) registers the rotation point of an object at x=0 and y=0. After searching the web I found a solution for which uses the mx.effect.Rotation. This works great for non spark components but I my project was using all spark components. So, I updated the code to reflect how to rotate an object with spark.effects.Rotate. Quite honestly, this version is simpler than the mx version.

Here is the original post from which i based this code:

A Type-Ahead TextInput is feature common to modern day web forms. Quite simply, it is a way to allow the user to enter free text into a field and simultaneously display a list of possible choices based on the text they've already entered. It does so in a way that does not interfere with the users choice of input. In this article by Keith Lee, we will use Flex and build a AutoComplete TextInput.

Read More at: http://www.packtpub.com/article/building-a-flex-type-ahead-text-input

Here is a devshed article on Sorting and Filtering ArrayCollections in Flex:

If you're already familiar with Flex and ActionScript you will know how useful the listBase controls are to fast RIA developent. When working with the List, Tree, DataGrids and other controls you may first be looking to get over the hump of populating your control with the correct data. Understanding the breadth and depth of dataProviders is an article in itself (not discussed here). Once you do have an understanding of them, you may be in a situation where you will need to do further manipulations like sorting or filtering. The ActionScript library has a few nifty classes that work in conjunction with the ArrayCollection (used as a dataProvider for list based controls) that help with this type of functionality. In this article I will build a basic application which uses an an ArrayCollection as a dataProvider and apply sorting and filtering to it.

Here is another DevShed Article on Flex List Controls

The List Control is a fundamental control for use in Flex. It can be used in many different situations and can display all types of data. Anything from images to plain text and even basic HTML (supported by Flex) can be used. Keep reading for an introduction to this versatile control.

Read the complete article: Flex List Controls Tutorial

I recently wrote an article for on Flex and DataGrids Here is the intro . . .

The Party Rental Planner Reservation widget is a project that has been in progress for a long time. This brainchild came to me when I used to run a frozen drink machine business is the early part of this decade. I had actually written a crude version of a software application which would manage frozen drink machine rentals and customers. Well, needless to say, the project went no where. I've since revisited the project and am changing it a bit. Now, I'm going to incorporate a flash application which will either run on the desktop or on the server. Using Flex is the perfect opportunity to take advantage of this up and coming technology for the small business world.

While writing tutorials on Flex & Actionscript I found the need to paste MXML code into my HTML documents. Well, if you've ever tried to embed non HTML XML tags in your document, you'll know that these tags do not show up. To make them appear, you have to convert the characters into HTML Entities.

The HTML Entities are just a way for the browser to display non-alphabetic letters like '<' and '>'. For instance, to display a '<span> tag you must replace '<' with the &lt;.

While coding a FTP client in Flex/ActionScript, I had to dynamically create List Controls whenever a user clicked on a file or folder. I thought this was an easy and useful technique that others may be able to use.

While writing Sunspot, I incorporated an algorithm that would remove all the columns of a data grid and add them again on a per search basis. This added flexibility for the Solr client but introduced a small problem. Whenever you delete a column or columns (via the data provider) the width of the column is not remembered. This is especially true is the user has customized the width of the column and is then redefining their search which new columns.

I've read about other web base IDEs but have yet to see one complete enough to be brought to the developer community. So, I cranked up the google and started doing some basic searches. I could always take look at other project to get some ideas.