Archive for January, 2007

Why wouldn’t they just say that?

A reader commented on my ScrollPane article, saying “why wouldn’t they just say that?”

I’ve found myself asking this question more and more as I’ve been diving into Flex and ActionScript 3.

For example, here is how to get the name of the root node of an XML object:




In AS3, nodeName has mysteriously disappeared, and the Migration Guide makes no mention of name() as its new equivalent.

In fact, the XML Class Definition for ActionScript 3 describes name() as “Gives the qualified name for the XML object.”, which led me to believe it was relevant only namespace-qualified XML tags and not useful for getting a root node’s name.

Splitting hairs, perhaps, but a good little tip nonetheless.

, , ,