I could never find a simple, straight-forward example of this stuff. Facebook’s documentation isn’t extremely clear either. Continue reading
Shuffle and Randomize Arrays in ActionScript and JavaScript
I’d been looking around for the best solution for this and most of what I had found either performed poorly or wasn’t quite random enough. Not so strangely in the end, the best solution was the most basic. Continue reading
Absolute-to-Relative URLs
While working on a WordPress-powered Flash application, I needed to populate a basepath with a relative URL. Hardcoding such would completely defeat the purpose of a CMS and since I couldn’t find anything on Google, I wrote this class.
Before: http://example.com/wp-content/themes/twentyten/style.css
After: /wp-content/themes/twentyten/style.css
iOS Alternate Theme for WordPress
Have your WordPress display a different theme to your Apple iOS (iPod/iPhone/iPad) users. Continue reading
Benchmark: ActionScript 3 Vector vs. getChildAt
I have never stored my particle instances in an array or any unique variables. There’s just no need to. The same can be achieved using only the child list, and with less bloat. New to Flash Player 10 is the Vector() class, and while they are faster than arrays, are they faster than getChildAt() and the child list? Continue reading
WP-HTML-Compression
Combining HTML “minification” with cache and HTTP compression (WP Super Cache, or similar) will cut down your bandwidth and ensure near-immediate content delivery while increasing your Google page rank.
This plugin will compress your HTML by removing standard comments and white space; including new lines, carriage returns, tabs and excess spaces. Most importantly, by ignoring <pre>, <textarea>, <script> and Explorer conditional comment tags, presentation will not be affected. Continue reading
Folder Names with a Colon in Mac OS X
When it comes to organizing a folder collection of any sort, the folder’s name plays a key role in finding your data in the future. One thing that’s always bothered me about folders with Windows and Mac was that they restricted me from using the colon character. Call me anal, but when you’re dealing with subtitle within subtitle, dashes take slightly longer to read. Continue reading
Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
MX 2004: Garbage (A Big “Booo” for Macromedia)
I was one of the many individuals really excited about the upcoming Flash version. I kept hearing about a few key features that I thought would be very useful. However, I expected more to be included in this version than just those few features. Damn, was I wrong. Thank God I didn’t pre-order the software, or I’d be in the hole $300 for the upgrade. Continue reading
_global Across Remote ActionScript Timelines
Like many Flash developers, I like writing classes and optimizing bandwidth with remote libraries. ActionScript 1 uses prototypes to extend methods to a function object, and to be able to access that class globally, one would use _global. Unfortunately, global do not work as well as they’re explained to. This bug is resident in all minor versions of Flash Player 6, and still exists in Flash Player 7. Continue reading