Flex Effects Example in a ViewStack

February 16, 2009

Since Adobe got a hold of Macromedia, they had Flash in their arsenal. And when you are using Flash, you have the ability to create cool, smooth animations. Using that technology, Adobe added a number of standard effects to Flex to make your applications look even better with smooth transitions using those effects. To give you an idea, lets create a ViewStack that switches views using effects.

Read more

Image as Button in a DataGrid

February 14, 2009

Just as the MouseWheel controlled slider idea, I had this idea when I was working on my flex MP3 player as well. I wanted to give the user the possibility to add tracks to a playlist by clicking a small plus icon in a DataGrid. There are a couple of things that have to be done to achieve this:

  1. Use an itemRenderer to show an Image instead of text
  2. Put the image in button mode so that it can be clicked
  3. Put an event handler on the click or double-click event of the image
  4. Code the event handler

Read more

Control HSlider or VSlider with the Mouse Wheel

February 14, 2009

When I was working on my Flex MP3 player I thought it would be nice to make it possible to control the volume slider with the mouse wheel. I started scrolling trough the events of the HSlider component and luckily, there is a standard event that is dispatched when a user uses the mouse wheel.

Read more

Simple Flex & PHP Example

February 14, 2009

How do i get my data from Flex to PHP? I wondered about this a year or so ago when I was just getting to know Flex. I have to admit that my PHP skills are not that good, I can get things in and out of MySQL databases and that’s about it. But enough about me, let’s make a simple Flex application that calls some PHP script on the server.

Read more

Using the Repeater in Flex

February 14, 2009

So you might come across some situation in which you want to repeat some part of your layout for each data item, but the number of items is unknown.

Fortunately for us, Adobe provided a component with Flex which we can use to achieve just what we want: repeating parts of the layout for every item in the data collection.

Read more

ViewStack, LinkBar and ButtonBar Example

February 13, 2009

When you are developing your Flex or AIR applications you’ll probably have one or more views where you want to put your components. Adobe Flex offers you multiple components to work with multiple views. Two examples are the TabNavigator and the ViewStack.

Read more

Using A ComboBox in Flex

February 13, 2009

The ComboBox or DropDown in other development environments, is a very useful input element. The great advantage of it is the fact that you can determine the values that a user can choose.

The items that are choosable in a combo box can be both static as dynamic. The following examples show you how to use both approaches.

Read more

Using the ProgressBar with a file download in Flex

February 13, 2009

So sometimes you’ll have time consuming procedures in your Flex application. Flex provides a nice moving clock thingy to let the user know that it’s doing something, but it doesn’t give the user any information about the progress.

Fortunately, Adobe provided the ProgressBar with Flex. To see how you can use the progressbar in combination with a file download from the server, see the following example.

Read more

Images in DataGrid depending on data

February 13, 2009

Flex DataGrids are usually used to give the user some overview of data. Sometimes we want to use a certain value in the data to describe something else (derive a value from the data).
For example, we want to display if a product is in stock yes or no using the following data:

Read more