Extension of the Adobe Flash Player / Adobe AIR with C and C + + via ActionScript 3

April 09, 2008 by Julien Lestel

At the MAX 2007 Adobe has shown an internal project called "C / C + + to ActionScript Compiler" so far and Kevin Lynch mentioned the project at Engage 2008. This project is a cross-compiler for ActionScript allows any C code or C + + to run on the Adobe Flash Player or Adobe AIR. This project has some subtleties to extend the platform Adobe in terms of coding. The key is that many languages are built from C / C + +:

Java, Python, Ruby, PHP, Lua, Perl, C # (Mono), JavaScript, and many others ...

Part of its implementation based on a pattern which allows ActionScript "green threading": it allows to execute code synchronously in the ActionScript virtual machine asyncrhone. The work done during this project will open new perspectives ...

Like many companies, Adobe has many C / C + + for filters used PhotoShop, PDF rendering, to read and écriretous file formats existing libraries of fonts, very complex vector renderers, and more ... With Adobe it are many open source libraries that could serve as a component. The biggest attraction for me is that there is no need to port these libraries, they work like the original. For example, the behavior of Python in Flash Player is identical with C-Python compared to the behavior of a scope as the projects IronPython and Jython. The aim is to bring the concepts of inheritance, libraries external code in the Flash Player and Adobe AIR.

An example of the complexity of the project: the engineers have included a C + + version of Quake 3 in Flash Player ... and it works perfectly and much more! It is an extreme case but illustrates the potential of this projet.Pour the envious, and internal project at Adobe is at the moment. It will be interesting to see how it evolves and how Adobe Flash Player and Adobe AIR could become incourtournable as development platform.

Update: You can test ShockWave Quake 1 version by clicking here

If you come for the first time on Flex-info.fr, you can subscribe to the RSS feed. Thank you for your visit!

1 étoile2 étoiles3 étoiles4 étoiles5 étoiles (1 votes, 5.00 out of 5)
Loading ... Loading ...

5 comments on this post

  1. Arnaud Says:

    Very interesting that! it would mean that developers specialized in different languages could cooperate on a project Flex or AIR?

  2. Nicolas Says:

    Porting Quake 3 on flash player is not because Adobe and internal visible (and playable ;) ) On this site: http://www2.rasterwerks.com/game/phosphor/beta1.asp

  3. PEZ Says:

    Quake 3 I think, probably the 1 ;)

  4. Nicolas Says:

    @ PEZ: If you had followed the link, you see that this is Quake 3 Arena, one with duels in a "ring" ...

  5. PEZ Says:

    Ah yes I had not seen the link.

    So now that I've done, I can say that not only it has nothing to do with Quake 3, but more than that has nothing to do with the article, it is a game that uses shockwave player and not the Flash.

    And I confirm that this is a port of Quake 1 they have shown

1 Trackbacks This artic

  1. Doom in AS3 - Tuto Flex, examples, news and advice in developing Adobe Flex / AIR Says:

    [...] To our favorite platform, the Flash Player. I had already talked to a port of Quake 1 to AS3. It is therefore of Doom which is now playable through flash with Alchemy, a [...]

Write a comment

Subscriptions

  • Add to My AOL
  • Add to Google
  • Add to Zune
  • Add to Netvibes
  • Add to Technorati
  • Add to My Yahoo
  • Add to Zune

Survey

How do you find the new Flex-info.fr?

View Results

Loading ... Loading ...

Mugsho