random pieces of code that could be useful, actionscript specific