Tooltips in detached windows with Adobe AIR

I just had an issue where we display a tooltip on a custom component in Flex. This worked fine until we also used this component in a detached window in Adobe AIR. We never saw the tooltip in the detached window. This is the code we used before in the custom component: This is what…

Restarting an Adobe AIR application when using video

An Adobe AIR application can restart itself, using the code found in this StackOverflow question. However, it does not seem to work always in our application. We are creating new NativeWindows to allow the user to detach a window from the main application window to support using multiple monitors. The problem seemed to be more…

Validation of multiple email addresses in flex

For our flex application, I had a ‘cc’ field that could handle multiple email addresses. When adding validation, I first used the standard EmailValidator class. However, this would not work as soon as you want to add multiple email addresss, like: foo@company.com;bar@company.com Luckily, creating a custom validator to handle this case is quite easy: I…

Flex gotchas for Java programmers

As a long time Java programmer switching to Flex, I have had some real gotcha moments. I want to share a few so you don’t fall into the same pitfalls as I have done. Casting Equals (or the lack of it) Setter optimization Casting In Java, you cast an object to a class or interface…