I thought I should share a component I whipped together for ActionScript 3 projects in Flash that allows you to easily monitor memory usage and framerate. It’s simple, unobtrusive, and only adds 0.5kb to your SWF.
Results for: flash
RegExr: Free Online RegEx Testing Tool
RegExr is an online tool for editing and testing Regular Expressions (RegExp / RegEx). It provides a simple interface to enter RegEx expressions, and visualize matches in real-time editable source text. It also provides a handy RegExp snippet sidebar with descriptions and usage examples to make it easier to learn Regular Expressions through trial and error.
Parsing Tags and Text From HTML
Here’s some quick code to parse individual tags and text elements out of an html string. It might be handy for some people, but it’s also a good example of some advanced RegExp in AS3, including positive lookarounds and lazy repetition.
Adding CSS Support to the CS3 Components
The CS3 component architecture makes use of TextFormats for all the text-styling needs, and by default there is no support for CSS styling. But fear not! Not only are the components easy to extend, but it is not at all difficult to add CSS support to any component. Here is an example of a CSS TextArea (including source).
Source Code: Seeded Random in ActionScript 3
Source code and information on a class to generate a reproducible series of random numbers based on a seed number. Useful for experimental work, statistics, and game development (ex. synchronizing or replaying game play). Also some discussion on nondeterministic collection access.
Branching Experiment: Ink Test
Continuing to play with my AS3 branching library. Focusing on texture and style, rather than the structure of the branching right now. This is an attempt to mimic ink on paper with bleed, fade, spatters, and “wiggle”, while keeping runtime performance acceptable.
ProximityManager updated for AS3
Often, in games or visual experiments, you have to track the proximity of a large number of MCs relative to one another, and carry out actions when they are within a certain distance of one another. I just updated my ProximityManager class to AS3 and added some optimizations. You can grab the source code here.
Adobe Exchange: Worth a Look.
While I was aware of the Adobe Exchange, I hadn’t really checked it out until a recent purchaser of our Spelling Plus Library mentioned that he had been unable to find our component on it. I’d definitely recommend having a look at the Exchange, and tossing it into your bookmarks. There’s a lot of great content there already, and more is being added daily.
