A real native Alert for Flex / Air

On May 3, 2009, Air, Components, Flex - 3 Comments

When you’re working on an Air project in Flex, and you want an alert to popup, you have a problem. Air doesn’t come with an ‘aired’ version of the Flex Alert. The flex Alert is fine, as long as you work with a single windowed application. As soon as you have more than one window, the Alert of Flex becomes more or less useless. Since you’ve got more than 1 window, Flex doesn’t know which window to make the parent window, so a model alert isn’t possible anymore.
I’ve taken the code from the mx.Alert and rewritten it to an AirAlert. It works exactly as the normal alert, only now it creates a window instead of a Panel / Titlewindow.

Usage: AirAlert.show(‘Test Alert!’, ‘Test Alert!’);
(The same as a normal alert :-P )

Notice: I didn’t copy the Alert.YES / Alert.NO stuff, so you have to use those from the Alert class.
Notice2: You’ll find no license or whatsoever, just use it as you like.

Download / View the source

Update Time! Next Up: ASDebugger 2.2

On , Flash, Flex - No Comments

I’ve updated the ASDebugger. Not much news here, I only implemented an updated (less buggy) version of the FlpTree. You can download the debugger on the project page.

Update time! Starting with: FlpTree 1.3.0

On , Components, Flex - 5 Comments

I’ve been awful quiet on my blog lately, time to do something about it :P .
First off, I’m releasing version 1.3.0 of my tree component.
I’ve added a filterfunction, which behaves just like a normal filterfunction, but works recursively.
I’ve also fixed some minor bugs, some events weren’t dispatched correctly.
And last but not least, I’ve made the displayobjects in the defaultrenderer protected instead of private, so you can access them more easily when extending the defaultrenderer.

You can download the new swc from the project page, which is here. Also, a link to the docs and an example can be found on the project page