I bet you can’t fill the canvas with paint using the bad painting algorithm below (keep an eye on the frame rate counter). Now check out your paint skills using the good paint algorithm. What’s the difference? Check out the answer after the examples. Bad Paint: Alternate Page. (pretend your cursor is a paint brush, […]
Image Distortion and Tapering in ActionScript
Distort and taper images in BOTH ActionScript 2 and 3 without a big 3D engine. Is it possible? YES! **Update (12/15/09): Alex Uhlmann made this class even better! Distortion Effects (AS3 only) (06/24/09): After doing some more research I found that Ruben Swieringa re-wrote this same class into AS3 exactly two years ago. I wish […]
Re-Learning ActionScript 2
It’s amazing how easy it is to forget the little niches in programming languages after going almost a year without using them. I recently had the pleasure of working on an ActionScript 2 project after almost a year of doing primarily ActionScript 3 development. This post will highlight a few things that can make ActionScript […]
Prevent Scaling in ActionScript Projects
Problem: The scale mode for ActionScript projects is set to allow zooming by default even when the width and height are set to fixed sizes. This can distort your website when the user uses ctrl-mouse scroll wheel or hits ctrl-plus / ctrl-minus. Solution: Set the stage scaleMode to “noScale” and configure the containing div to […]