Posts Tagged “flash”

Here’s a nice gotcha I found a while back when trying to run a filter on some XML data. If you write an attribute filter inside of a switch statement, the query will return null when you assign it to the XMLList variable. If you trace out the query instead of assigning it, it works fine.


switch (anything) {
case "testcase":
var xlData:XMLList = xmlData.Books.Book.(@author == 'Dickens');
break;
}

The above code will fail; apparently the scoping inside of switch statements is broken. There’s a bug report filed already, but it would be nice to see a fix for this.

Comments No Comments »

Flash Player 9’s been out since June of 2006, and in less than a year it’s jumped to 81-84% penetration, which is great news. I hope that Adobe can continue to release the player versions ahead of time and keep everything up-to-date with the autoupdaters so that when the authoring tools come around, plenty of people are actually using the player at launch date.

Here are the stats.

Comments No Comments »