Archive for January, 2008

FocusManager problem (States and Popupmanager)

Wednesday, January 9th, 2008

Ok, just spent most of the day trying to fix a wierd bug with an itemrenderer and a popups. I have a button which exists only in the state “Expanded” but does not exist in the state “Normal”. When the button is clicked, the popupmanager creates a window and the state of reverts back to “Normal”, removing the button. Here is the kicker, If I click anywhere outside the popup, the focusmanager throw an error, something about a null value.

After some investigation, It turns out that clicking the button, it first gets focus, which is then passed to the popup when it is created. However since the button has then been removed, the focusmanager somehow gets confused when you try to click back on the main application, and refocus back on the old button. I’ve tried writing a small example, but its not happening, so its probably something i’m doing with Currentstate and its sequence.

You probably won’t experience this with any app you write, but it was bugging the hell out of me!

What is Singularity??

Wednesday, January 9th, 2008

Aral has a new project What the hell is it!!, the suspense is killing me!

Degrafa is AWESOME, I still can’t design though

Sunday, January 6th, 2008

The main reason Ive been waiting for Degrafa, is the simple fact I’m not a designer. I’m crap at deciding colours, and even worse at deciding what are nice shapes to use on a website.

With Degrafa, the allure of making pretty shapes in MXML and being able to style it via binding and other such features seems pretty tempting. Whilst playing with stateful skins in flex 3, I’ve made a nice button which has unsymmetrical corners, a radial and liner fill, and some nice transitions between the two. However, it still looks a bit clunky, once again proving that I don’t have a designers bone in my body. I will still keep trying though, because I don’t want my flex app to look as samey as the rest.

I just like to say that the Degrafa team have done an awesome job at making styling and skinning as easy as possible, even though I don’t have the talent to use it, yet!