In AS3 there is a handy utility class called ChangeWatcher, which lives inside the mx.binding.utils package. It provides you with a handy way of watching other object’s properties. Here’s how it’s used: Object – the object which owns the property “property” – the property you want to watch handler – the function name of the [...]
A while back ago I realized the importance of variable types and code optimization. I was working on an interactive installation using an Arduino and a Mac Mini. The Mac was communicating with the Arduino through an XMLSocket and was getting data probably about one hundred times per second. The first version of the datahandler [...]
This is how you run the garbage collector in an Adobe AIR project:
A code snippet I tend to use quite often. And one that I tend to forget how I wrote the last time i used it.
A useful little snippet of code for when you want to copy text to the clipboard: Where source is the id of e.g. a text field.