Archive for August, 2006

How To Get Code From Adobe Labs

I’ve recently seen some confusion about how to get code from Adobe Labs. Whenever I post about code in the Adobe Labs source code repository, I usually link into the source code browser. For instance, if I’m talking about the ActionScript 3 PNG encoder, I’ll usually link to this. Copying and pasting from the source code repository is definitely not the recommended way to grab this code. The source code repository is only for reading the code online. Trying to copy and paste from it will result in horrible formatting and line numbers which will take you a fair amount of time to fix (and these libraries are all about letting you build apps quickly).

There are three good ways to grab the Labs source code. They are all described on this page on the Labs wiki, but I’ll go over them here, too:

  1. You can check it out using an SVN client. If you want to be able to keep grabbing the latest and greatest, and you already use SVN as part of your development workflow, this option should work well for you. Just run: "svn checkout http://labs.adobe.com/subversion/flashplatform/".
  2. Get the daily build. I have a cron job that builds a zip file of all the code every night. You can download the zip file here.
  3. If you insist on using the source code browser, when you find a class that you want, click on the "text" link rather than the class name to get a text version. The text version preserves the original formatting and doesn’t add line numbers.

There’s some good code in there, so enjoy it.

ActionScript PNG and JPEG Encoders Updated

In October of 2005, Tinic Uro ported a PNG and a JPEG encoder to ActionScript 3. Shortly after, we added both to the collection of free ActionScript libraries on Adobe Labs. Tinic wrote them for an early alpha release of Flex Builder, so at some point along the line during the evolution of the compiler and the player, they stopped working.

I just checked in new versions of both that now compile and pass simple tests against the Flex 2 release. The PNG encoder is here, and the JPEG encoder is here. Let me know if you find any problems with them.

Upcoming Apollo Sessions

I’m going to be talking about and showing Apollo at Flashforward in Austin in September, and MAX at the Venetian in Las Vegas in October. If you’re interested in learning more about Apollo, these are the places to be. Let me know if you’re going to be there and want to hang out. There will be plenty of time for talking Apollo, eating BBQ, playing blackjack, and probably getting in a game or two Halo.