Having quality issues? Getting different dimensions from the camera than what you request? Read this note from Adobe: https://bugbase.adobe.com/index.cfm?event=bug&id=2942275 This was Adobe’s response When you call Setmode with some requested width and height, its not necessary that you will get the requested width and height. The returned width and height depend on a number of [...]
July 2nd, 2011
Auto create polygon AS3
Made a Flash on Wonderfl the other day. My friend studying for his PhD at Georgia Tech in architecture called me regarding a problem. He said, “I need to program something to create a polygon from points. Right now, the points are not being drawn in the right order so lines are being overlapped. How [...]
June 14th, 2011
Superfast Base64 Actionscript Library
So I was using this Base64 Actionscript class for Base64 encoding/decoding a byte array while working on my cofounded project 15Seconds.me. The Base64 class is by Jean-Philippe Auclair, and according to his own benchmarks, runs about 700% faster than Adobe’s own Base64. He has a nice explanation of how he made some improvements, and considering [...]
June 2nd, 2011
JavaScript Function declaration cautions!
Just found Kontagent‘s JavaScript library has a issue. When you declare functions in JavaScript as so below, the behavior isn’t as expected! Be sure to declare your dynamic functions like so: As in Actionscript (also ECMAScript based), declaring functions the first way will be global scope. And the last function defined will be the one [...]
April 30th, 2011
LocalConnection Bug in Flash Player
So I’ve had this problem for ages, and couldn’t find anyone online writing about it. LocalConnection in AS3 is used to send messages between Flash SWFs in a browser window. It’s also used as a hack to invoke garbage collection in the Flash Player. I’ve been using it in some recently applications to ensure only [...]
December 27th, 2010
AS3 Matrix Library
I don’t know if I ever posted this, but here is an Actionscript 3.0 Matrix math library I made in college. Check out AS3 Matrix on Google Code (http://code.google.com/p/as3matrix) Some of the features it uses is caching Matrices for their operations. Does LU, QR, and SVD decompositions. Not sure how it compares to speed of other [...]