Asynchronous Recursive Directory search in AIR (aka FileFinder)
Ran into an issue with my latest project, where I needed to do a recursive file search on the FileSystem, but needed to make the entire thing asynchronous so that it would not lock up my application.
Easy MySQL Query from FLash (AS3)
I recently had a project requiring extensive communication between Flex and a MySQL database. I looked around for solutions, AMFPHP looked good, but required some server side installation, and still required writing my SQL statements in a PHP page.
What I was really looking for, was an easy method to be able write my own SQL queries right inside of Flex, pass them to the server, and get back a result set, or error message. I didn’t find anything out there that quite fit the bill, so I built my own.
Error 2101: The source parameter must be a URL-encoded query string containing name/value pairs.
Stumbled upon this little error last night in Flash, and it was a bit of a PITA so I thought I’d post up a solution here.
AS3 Indexed Object
Ever needed to create an object hash, yet wanted to retain some array functionality such as .length, and getItemAt()?
Here’s “IndexedObject”:
Firefox 3 Scroll Wheel Fix
There a bug in Firefox 3 which causes the MOUSE_WHEEL event to always fire twice, no matter what. Here’s the fix…
FrameRate Monitor
Another utility class, this time a FrameRate monitor for easily getting the current frameRate of your movie.
ColorTween class
Here’s a very handy utility class to tween the tint of a MovieClip. It works by creating 2 color transform objects (based on a start and end color) and interpolates the colors in between. This uses GTween to handle the tweening of a dummy property, while the color is updated on the CHANGE event handler.
flipGallery 3D Source Code
This was pretty much my first real attempt at a PV3D project. Using an AS2 Cover Flow implementation as my target, I began redesigning it completely from scratch. The process was extremely enlightening, I learned a ton about both As3 and Papervsion, and I really think the end result is one of the best implementations I’ve seen. It’s extremely smooth, and able to handle upwards of 100 images with great performance.
Scrollbar Class (AS3)
Here’s a generic ScrollBar class, which will take a movieclip and create a scrollbar out of it.
The class accepts 2 parameters, your source movieclip, and the callBack function which should be notified whenever the Scroller’s position has changed. It also features some external interface to change the position of the scroller from somewhere else in your code
AS2 Inline Scroller
This scroller was written for an emergency situation at my last job, our 3rd party scroller from Extend Studios had a bug in in that caused the newest version of the Flash player to instantly crash our sites. This was a major problem, as we had already implemented about 35 sites using this plugin!