Author Archives: dchang

LiveReload, HTML/CSS/JS tool… for Flash, noooo! Comments Off

Been dabbling in some goodies for straight non Flash-based web apps and one of the tools I’m using regularly is LiveReload. It basically refreshes a site whenever files change in a watched directory. It’ll also compile CoffeeScript, SASS, Jade, etc for you but the folder watching feature itself has been handy for my Flash work. [...]

swcvis Comments Off

Here’s a little tool I threw together while evaluating some Flash libraries for another project. I wanted to get a quick sense of a library’s size and structure but I usually find myself hopping all over the asdocs trying to draw a mental map. Basically all it does is read the object dependency information out [...]

AS3 logging with Log4j 3

There are several things I miss about FlexBuilder…the debugger, authoring-time error checking, code assistance, and the quick compiles to name a few. But perhaps the first thing you’ll miss when just using the free Flex SDK is your basic trace output window. Initially I had written a simple Ruby script to handle tracing to a [...]

Revisiting 3D in flash 2

So recently I start working on a 3d engine again. I had toyed around with writing one back in the flash mx days but the speed of the flash player prior to version 9 was a major hurdle. Obviously even with 9, you’re not going to get 3d quality on par with the popular games [...]

AS3 Runtime Font Loading 30

Here’s a little experiment with loading fonts dynamically at runtime. So what’s this good for? Well let’s say you have a flash application where you want to allow users to customize the text formatting for some text box. Typically you would provide a small set of fonts which would all get embedded into the swf [...]

Using other types within packages 1

I was doing something, I forget what it was now, but it got me curious about functions defined in some of the flash player native packages. The flash.net, flash.profiler, flash.system, and flash.utils packages all have functions defined in the package itself rather than in a class as static methods. This got me wondering if it [...]

AS3 Zip Library Release 75

Here’s an ActionScript 3 based library for reading and writing zip files. I wrote this for another project I’m messing around with and thought I’d release it. I realize there’s already a useful library out there called FZip which is faster at uncompressing zip files as it uses the native uncompress method. However, it may [...]

Testing WP-SWFObject… 3

Just trying out WP-SWFObject, a WordPress plugin for embedding swf files in posts that uses SWFObject. Below is a Flash 9 swf: This movie requires Flash Player 9 swfobject.embedSWF(“/blog/wp-content/uploads/2007/02/version.swf”, “swffd5e2″, “320″, “16″, “9″, “”, {}, {wmode: “window”, menu: “false”, quality: “high”, bgcolor: “#CCCCCC”}, {}); It seems to work nicely. Although I couldn’t read the author’s [...]

Flex Compiler Shell Comments Off

Well I got around to playing with fcsh and man it’s so much faster. For one of my projects, each build (with incremental=true option) takes about 4-5 seconds. Under fcsh, the same project initally takes that long but each build thereafter using the compile id command took only 200ms or so even with changes to [...]

Flash 9 XML vs. XMLDocument 2

Was going over some older Flex 2 beta posts by Ralf Bokelberg, a developer I very much admire, and found this interesting piece regarding the speed of XML vs. XMLDocument objects. Out of curiousity, I quickly tested his script with the latest Flash Player release (9.0.28.0) and sure enough, XMLDocument still beat out XML. I [...]