General

Flex: Introspecting An Object By Name

Say you have an object reference in your class:

var button1:Button;

How do you introspect it? One way is to use the Introspection API as described in the Flex 3: Performing Object Introspection doc:

var classInfo:XML = describeType(button1);

But what if you want to use the object name, a string, instead of a class reference? Simply use the ff:

var objectName:String = “button1”;
var objectInfo:XML = describeType(this[objectName]);

From there it’s as simple as going through the XML object as described the rest of the Flex 3 doc.

Bonding

Last night, Michelle was off to an office dinner. I took the opportunity to buy an iPad case as well as diapers and water for Jeanne. When I got home around 9:30M,  Jeanne and I played till she got tired and we started watching Brainy Baby. I lay on my side while she leaned back on my tummy. She watched while I slowly fell asleep. I woke up to see that she’d fallen asleep. I lay her down on the bed and went back to sleep. Only Michelle’s arrival awakened us but not for long.

Nokia N9

I read the GSMArena review of the upcoming Nokia N9 and I was quite impressed. The hardware, as with the Nokia N8, is quite good. The software, MeeGo, seems to be as good, if not at par, with iOS and Android. And with Alien Dalvik, it can actually run Android apps via emulation. Yet, the N9 will be coming out under planned obsolescence: it was confirmed to be the final MeeGo phone as Nokia’s dark union with Microsoft bears fruit to the N9’s lesser twin. Nokia already knew what MeeGo was and what MeeGo will be when they decided to go to bed with Microsoft. MeeGo was even then better than WP7. And yet they pushed on. What’s up with that?

A Clash of Kings


Finished A Clash of Kings over the long weekend. It’s about as good as A Game of Thrones,  if not a bit better. The saga goes on and there’s still the political maneuverings, the cloak-and-dagger stuff, the skirmishes, and the battles. There’s also a little bit more of magic and sorcery, edging the series from medieval and towards fantasy.  Unexpected was the battle outside the walls of King’s Landing towards the end. The battles in A Game of Thrones were rather smallish or seemed like so but this one was HUGE. Though it could have been more epic by adding more detail and perspectives, but it’s good enough as it is. I read there’s going to be a TV version and I wonder, considering the low budget of TV productions, how they’re going to pull this off. It would be sad if they couldn’t.

Mormont The Bear

Jeanne, Michelle, and I went to High Street for a Father’s Day dinner. After dinner we dropped by Animaland and she grabbed this black bear. Michelle tried to show her a giraffe, an elephant, even a polar bear but she wouldn’t let go of the black bear. So we decided to adopt the black bear. And since it was my day, I got to name him Mormont.