warning

I don't want to constantly be saying "This code is interesting but you actually shouldn't use it." So I'll say it once...

I think it's important to mention that some of the code posted here is for reading and playing around only. Things like this:

Actionscript:
  1. var e:String = "addEventListener";
  2.  
  3. stage[e]("click", function():void{
  4.     trace("click", arguments[0]);
  5. });

A stage listener that combines square brace syntax, an anonymous function and the arguments array... is fun to write... maybe fun to read... but real projects should use more normal practices:

Actionscript:
  1. stage.addEventListener(MouseEvent.CLICK, onStageClick);
  2. function onStageClick(evt:MouseEvent):void {
  3.     trace("clicked", evt);
  4. }

more to come on this page....