Unique records in AS3

I’m sure others already know this little trick – but in case you didn’t…

The filtermethod for Arrays in Actionscript 3.0 comes in handy if you want to (ahem) *filter* certain elements out of your array :


var tmpArray:Array = ["oranges", "apples","oranges", "pineapple", "carrots", "oranges"];
var fruits:Array = tmpArray.filter(function(e, i, a){
   var isUnique:Boolean = (a.indexOf(e) == i);
   return (isUnique);
}, this);
trace(fruits.toString());

Continue reading

Communication Convergence

In the past 12 months, many things have happened. The world has seen an unprecendented global shakedown of financial services, America welcomed in a black president, a well respected and seasoned newspaper filed for bankrupcy, and the catch phrase “chk chk boom!” entered the Australian vocabulary. Just to name a few. And every one of the events of the past 12 months has been recorded, distributed, discussed and discovered on the interwebs.
Continue reading