One of the inconsistencies between ActionScript and all flavors of ECMAScript is the lack of a proper eval() statement for ActionScript. ActionScript’s eval() statement cannot evaluate a simple string such as “a = 1 + Math.sin(0);”, which makes it a pain to use for plotting applications, JSON, and every other place where dynamic script writing […]
Here’s a little treat: a component set which allows easy alignment to create fluid layouts, from Elvis Mehmedovic. The examples shown are quite tantalizing, and there are some other nice components for download there. You can drop the components on stage or use the Actionscript classes as standalone.
Here’s a wrapper class to make the components […]
I’ve created a code generation template for AS2 as well as a base project for use with Enterprise Architect Professional or Corporate edition. Features include:
Generates AS2 files with right folder structure Generates imports, supports packages Generates members, methods Generates classes and interfaces Carries over method comments Carries over method/member visibility attributes (private/public) Generates JavaDoc for class and methods Carries over types of […]
I was asked recently how to graph a gaussian (you know, the bell curve, ) in Flash. Of course you can graph the function by sampling it at different intervals and placing lines at the right places. But I always find that it looks a bit jagged and it’s a lot cooler to use curveTo. […]