jump to navigation

Alchemy project from Adobe Labs July 17, 2010

Posted by Tournas Dimitrios in Flex.

With Alchemy, Web application developers can now reuse hundreds of millions of lines of existing open source C and C++ client or server-side code on the Flash Platform.  Alchemy brings the power of high performance C and C++ libraries to Web applications with minimal degradation on AVM2.  The C/C++ code is compiled to ActionScript 3.0 as a SWF or SWC that runs on Adobe Flash Player 10 or Adobe AIR 1.5.

Adobe Labs provides you with the opportunity to experience and evaluate new and emerging innovations, technologies, and products from Adobe.In a previus article I demostrated the Blueprint  plugin for Adobe® Flex® Builder™ 3 and Flash® Builder™ 4 that allows users to query for Adobe Flex and Adobe Flash code examples found on the Web directly inside of the development environment.

Follow these steps to get started with Alchemy:

  1. Download Flash Player 10 or Adobe AIR 1.5
  2. Download the Alchemy toolkit preview for your operating system
  3. Download and follow the Getting Started instructions, which walk you through the Alchemy tool chain setup, shows you how to compile C/C++ code into a SWC, and then use that SWC with a simple ActionScript example.
  4. Ask questions and share your feedback in the Alchemy forumPlease note that your submission of comments, ideas, feature requests and techniques on this and other Adobe maintained forums, as well as Adobe’s right to use such materials, is governed by the Terms of Use.
  5. Download sample libraries and share your own.

The following requerements must be met (for Windows users) :

  • Alchemy Toolkit Package for your operating system
  • Cygwin with the following packages installed

    • Perl
    • zip
    • gcc / g++

  • Java
  • Flex 3.2 SDK
  • Flex Builder or Flex SDK setup to target compilation for Flash Player 10

Read this article that instructs how to install Alchemy on your Development enviroment .

A good working example is ZaalL .It was created   using Adobe’s Alchemy toolset to port  DevIL on the Adobe Flash Platform!  This means that we now have support for 40+ image formats in the Flash Player.  And yes… it works in both Adobe AIR as well as Flash Player.The port was done by Aaron Boushley and Nate Beck of ZaaLabs.ZaaIL is released  under the MIT License!

About DevIL

Many people may have known DevIL as OpenIL, but the name was changed due to SGI’s request.
Developer’s Image Library (DevIL) is a programmer’s library to develop applications with very powerful image loading capabilities, yet is easy for a developer to learn and use. Ultimate control of images is left to the developer, so unnecessary conversions, etc. are not performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can load, save, convert, manipulate, filter and display a wide variety of image formats.
Currently, DevIL can load .bmp, .cut, .dds, .doom, .exr, .hdr, .gif, .ico, .jp2, .jpg,.lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, .png, .ppm, .psd, .psp, .raw, .sgi, .tga and .tif files.
Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm, .pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif.
DevIL currently supports the following APIs for display: OpenGL, Windows GDI, SDL, DirectX and Allegro. Compilers that can compile DevIL or use it include Djgpp, MSVC++, Linux gcc, Delphi, Visual Basic, Power Basic and Dev-C++.

Features currently supported:

  • Decoding 40+ image formats
  • Access to the image bitmap data

Features planning to be supported:

  • Support for encoding bitmap data to 20+ image formats
  • Palette swapping

Get It Here

See it in action .Download the source –> here.
Read how to Compile ZaaIL with Alchemy (3-part).


No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s