When garbage collection does more than you want

I had an interesting Flex bug to solve a day before the project deadline. I was showing a progress bar while some images were preloading in the background. The application was only allowed to fire applicationComplete event once these images have finished loading. The client complained that the progress bar stalls the first time you run…

Read More

LinkBar was meant to be used with a ViewStack

I had to read the source code for LinkBar and its parent NavBar to understand why my LinkBar wasn’t highlighting the clicked item. Turns out, it’s because I use an ArrayCollection as a dataProvider. According to the documentation and the source code, it is possible to use an IList (such as an ArrayCollection), a String…

Read More

Flex: non-UIComponents in the Display List

There are 2 main ways to add non-UIComponents to a Flex Container. 1. You may add the object to a SWFLoader, which does not require its children to extend UIComponent. 2. You may add the object to Container.rawChildren. You have to be careful with the 2nd one. First of all, know that whatever is contained in Container.rawChildren is not…

Read More

Flex 3D and Wiimote

I haven’t blogged in a while. Too much work to catch after the conference. I’m having a lot of fun with 3D in Flex lately. I found this really great open source library papervision3d. It’s incredibly easy to use. I got the hello world to run in my existing Flex app in under 5 minutes…

Read More