Archive for Flex

Using conditional binding in Flex and AIR applications

Everyone knows by now that variable binding is something that is constantly used in Flex and AIR applications. The simplest way of using this feature is making use of the [Bindable] metadata tag. However, there’s a second way that is commonly used and that is the <mx:Binding> tag. This one is used especially in combination [...]

How does Flex know an HTML popup has been closed?

Imagine a situation where you have a Flex application and you need to display a popup window in which an external application is doing something else with the same data. You don’ have control over the external application, but you know it is written in HTML and PHP. Imagine also that your Flex application needs [...]

fl packages in flex/flash builder

Recently I tried using Five3D in a pure AS3 project using flex builder 3. Everything went well upon compiling, it was nagging that it (FB) couldn’t find the fl.motion.Color class. I looked into the Five3D code and it is indeed using the Color class to simulate basic shading. And actually that error wasn’t so weird [...]

A very simple facade

In one of our latest project we wanted to use some sort of an event system that would make it possible for components to dispatch events to each other even though they are not aware of each other or are not in the same displaylist structure. In that last example we would just use the [...]

Floating licensing in Flex applications

Sometimes in Flex projects you need to be able to include some licensing policy. In a lot of cases this will be a simple user identification for registered users. But sometimes there is a request for a floating license policy. This means that a certain company buys let’s say 10 licenses, but they are not [...]

View state transition problem: effects don't play

If you are using view states and want to apply certain transitions between these states, there are some things to keep in mind. When adding components to a state, the transition effects (also called behaviors) are applied to that component while adding it. So this means that the effects will be visible during initialization of [...]

Flash Builder and Flash Catalyst betas available

Hey everyone, I’ve just found out that the first beta version of both Flash Builder 4 and Flash Catalyst are available on labs.adobe.com. Flash Builder has some very useful inprovements, like source refactoring, framework package explorer, … The Flash Catalyst version is somewhat different from the version that was distributed at MAX last year, but [...]

Creating your own Flex validator class

Every once in a while you come across a problem you can’t fix with the basic components provided by a certain kind of technology. OK, so I lied: Very often you come across a problem you can’t fix with the basic components! Flex is not different at all. It has some good basic validator classes, [...]

So, What exactly is a .wav file?

Until recently, I thought a .wav file was for uncompressed digital audio data on windows, while .mp3 file would be the compressed version of the audio clip.  That was probably too simple to be true!! The first time I used Adobe Audition to export a mixdown of a multitrack session, an export dialog box poped-up [...]

3 ways to solve the “I want to call an event handler function directly” problem

Say you have an event handler that is called each time an event is triggered and you would like to call this function directly (so without waiting for an event to happen). See the following scenario of a ticking clock to make this more clear: -          TimerEvent that changes the rotation of the clock handlers. [...]