Set custom cursor using the CursorManager
November 18, 2009
After my previous post about setting the busy cursor, I decided to write a next post about custom Cursors. In our example we use an Image as a Cursor source, but you can also use a SWF file.
The CursorManager allows you to use your custom cursors in a very simple way. The most important method is the setCursor() method, which can be used as follows:
1 | CursorManager.setCursor(myCursor); |
TinyURL usage with Flash Builder
November 18, 2009
Always wanted to use flex or air to create your tinyUrl’s ?
You making an application which should create tinyurls ?
Well look no further. Here’s the code to create smaller urls using the tiny url api.
Read more
Set busy Cursor using the CursorManager
November 17, 2009
There are multiple ways to show that your Flex Application is busy, one of the nicest is showing the busy cursor. This is very easy within Flex since you can use the CursorManager component.
The only source code you need is:
1 | CursorManager.setBusyCursor(); |
This is a static method of the CursorManager component. It is also possible to create a custom Cursor, this will be the subject of our next example.
ArrayCollection Filter Example
November 17, 2009
This example is all about filtering an ArrayCollection in a DataGrid. We will filter the ArrayCollection using the input from the TextInput field, the value entered as the datagrid values are translated to lower case.
Viewstack Repeater Example
November 16, 2009
The following example shows you how to use a repeater inside a viewstack. Our example about viewstack effects is very popular, and I recently found out how to use the repeater inside a viewstack, I decided to write an example about this subject.
Remove Folder and File icons from Flex Tree
November 12, 2009
The previous example with the custom open / closed icons had a nice result. It would be even nicer though, when the folder and file icons would dissapear.
Luckily, this is also pretty easy to do in Flex, just add a style sheet to your application with the following css in it:
Read more
Change open and close icons on Flex Tree
November 12, 2009
Personally I don’t like the default open / close icons (the down arrow / right arrow icons ) on the Tree control in Flex. Luckily, can can easy change them into a different icon.
The Flex Tree has a number of properties you can style, what we are looking for here are the following two: disclosureOpenIcon and disclosureClosedIcon.
Read more
Connect to Google Analytics from Flash Builder
November 11, 2009
Everybody that has a site somewhere sitting on the Web is probably interested in the number of visitors. There are a a lot of solutions available that can give you detailed statistics about your site. Google Analytics is one of them, and I think this is the one that’s mostly used right now. Google also has an API which you can use to get statistics, wouldn’t it be cool to have these statistics available to you in Flex? Ofcourse it’s possible, here how you do it using PHP and Flash Builder 4.
Connect to Twitter from AIR example
November 10, 2009
So everybody’s using Twitter now, so i thought it might be cool to write a small example to show you how you can connect to Twitter from an AIR application. The first thing you need is an API to connect to Twitter.
Read more
Looping over an ArrayCollection with Cursor Example
November 10, 2009
There are different ways to loop over an ArrayCollection, the two approaches that are used to most are (I think) the folling two:
1 2 3 4 5 | // Assuming that I have a declared variable "ac" of type ArrayCollection which is not null for( var i:int=0; i<ac .length; i++ ) { //Do something here } |
and
1 2 3 4 | for each( var obj:Object in ac ) { //Do something here } |
Works fine of course, but if you are, for example, searching for something in the collection you still have to get the current item from the collection etc. etc. So is there a better way? Yes there is.
Read more






