This content has been marked as final. Show 7 replies
matchingRecords is nothing more than a list, so if it didn't find any records, the list will have no entries, i.e.
if (matchingRecords.length > 0)
// do stuff...
You made the same mistake I did :)
length is a method of the AS XMLList and not a property. Sadly, the compiler doesn't complain and so you don't catch it. Further the debugger (inspector) does not show you anything about the XMLList variable execpt that it is an XMLList. Really Pathetic.
Can't figure why some others think the Flex Builder debugger is great :) I fell like I've gone back 10 years.
oops....typo....I did really mean to put matchingRecords.length() > 0...honest....
I even tested it in a project, and then stuffed up the cut/paste....
I agree completely.
Unfortunately, I'm not so sure the Felx engineers at Adobe are of the same opinion. The feeling I get is they feel they've done it all too perfectly and any advise/suggestion you have simply bounces off. I mean *you* couldn't possibly know better than them. :)
"...they feel they've done it all too perfectly ..."
I've been working with Flex since it was beta, and I must disagree with this. In my experience, the Adobe/MM folks are paying very close attention to what we say.
You need to understand that you do not modify/release commercial software casually. It will take months to years. Be patient, or find a workaround, they exist.
Be sure to log your wishes/bugs on the wishform. I know for a fact that they monitor that. I have been contacted for clarifications on my posts there.
I'm making a comparision with years of experience and not just shooting off the hip. I've dealt with many Developer tools teams from alpha to beta and beyond for over 10 years.
It's comments such as yours that make them even more complacent, unfortunately. Don't get me wrong, they've done a great job thus far. But there is always scope for improvement. In my opinion for a version 2.0 product FB sucks and for a version 3.0 language AS has a LONG way to go yet.
And yes, logging bugs and wishes is just a waste of time in most cases.
Flex Builder is really a version 1 product. The "2" is just marketing.