Thank you - I'll do, but On Sat, Feb 6, 2010 at 7:01 PM, Juan Pablo Califano <[email protected]> wrote: > Because your second query returns an empty list instead of null. > > So, instead of checking for null, just check the length of the result. > > trace(describeType(xml1.lobby)); trace(xml1.lobby.length()); // 1 > trace(describeType(xml2.lobby)); trace(xml2.lobby.length()); // 0
wouldn't it sometimes throw an error that I call a method length() on a null-object? Regards Alex _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

