It uses a hybrid of legacy AS2 modules and required integration with AS3, which I brought up-to-date and solved the intercommunication restrictions between Adobe Flash AVM1 and AVM2 (AVM – ActionScript Virtual Machine) by using a LocalConnection object as a proxy. Hopefully we’ll be adding more features soon!
It gets scary out there sometimes. During my freelance career I’ve worked at a lot of different companies and have seen such coding horrors as you cannot imagine. So I thought I’d start immortalising some of them – so that we can all learn better coding practices, by looking at the bad.
Starter for 10 – What’s wrong with this picture?
public function doSomething(stuff:String):void
var newPixels:BitmapData = new BitmapData(someUint, someUint, true, 0);
someBitmap.bitmapData = newPixels;
Did you spot the fubar? It’s not an obvious one. Continue reading CODING WRONGS – Where do I start with the bad?