Best Source Code Comments

This isn’t directly related to Flash but programming in general. Stack Overflow has a post about encountering the best comments in source code. These are pretty classic.


Sponsors

As you can see, I’ve added sponsors to the right hand sidebar. Not only did I pick sites that I think are actually worth signing up for, but if you sign up by clicking one of those you’re helping the site so please do if you have some free time. It’s well worth signing up […]


AS3: Environment

View Example View Documentation Download Class & Example Files UPDATED 10/26/07 The Environment class has been re-versioned to 2.0. It is now a singleton which means you can only have one instance of it anywhere in your application. This is a cleaner approach. The code has changed only slightly as it has added a setPaths() […]


AS2: MousePositionPanel

View Example View Documentation Download Class & Example Files Creates a scrolling panel that allows for scrolling in the x or y axis depending on where the mouse pointer is within the panel. PLAIN TEXT Actionscript: /** * Creates a scrolling panel that allows for scrolling in the x or y axis depending on where […]


AS2: ContactForm

View Example View Documentation Download Class & Example Files Creates a communication gateway between a contact form and a PHP script that checks for validity and sends the email. The e-mail checking is rudimentary at best, but it gets the job done. If someone will go through the trouble to try and break this e-mail […]


AS2: AxisScroller

View Example View Documentation Download Class & Example Files Creates a scroller that allows for scrolling in the x or y axis, using the mouse wheel/arrow keys, different easing functions and types, and some other miscellaneous cool things. PLAIN TEXT Actionscript: import mx.utils.Delegate; import mx.transitions.easing.*; import mx.transitions.Tween;   /** * Creates a scroller that allows […]


AS2: PullOutMenu

View Example View Documentation Download Class & Example Files Creates a menu like the classic dropdown menu with the options to direct it up, down, left, or right depending on values set. PLAIN TEXT Actionscript: import mx.transitions.easing.*; import mx.transitions.Tween; import mx.utils.Delegate;   /** * Creates a menu like the classic dropdown menu with the options […]


AS2: StageManager

View Example View Documentation Download Class & Example Files Creates an instance of the StageManager that aligns clips according to their selected alignment mode. Also dispatches an event, onStageResize, that allows for futher manipulation of clips to the stage sizing. PLAIN TEXT Actionscript: import mx.transitions.easing.*; import mx.transitions.Tween; import mx.events.EventDispatcher;   /** * Creates an instance […]


AS2: CacheBuster

Download View Documentation A simple utility class that converts a URL or array of URLs to a "cache-busted" version to ensure loading of the most current version. PLAIN TEXT Actionscript: /** * A simple utility class that converts a URL or array of URLs to a "cache-busted" version to ensure loading of the most current […]