Des billets et experimentations Haxe, NME, openFL, Flash, HTML5 et mobiles


24.07.2008 3976 1

Some days ago, Nicolas Cannasse has released a new library called hScript, for Haxe.
This lib enables you to "interpret some code dynamically".
hScript is really powerful, you can try it with this little hScript Interpreter.

Lire la suite

XiLib for Haxe

16.06.2008 6852 2

XiLib is a package of 2 classes, that can help in building modular Flash applications.
It facilites application's maintenance : There is no need to re-build the whole project to fix a specific bug, to upgrade an existing part or add a new part to an existing application.
Xilib works with Haxe Flash9 and gives help in loading and using ressources from external SWF libraries (as run-time downloaded classes, media assets, components, plugins or listeners*).
Let's see how does it work

Lire la suite

Unified Flash 6 - Flash 10 Loader

28.05.2008 3821 2

Here comes a sample of an universal loader that can load flash movies from version 6 to flash 9 or higher.
In fact, the problem is not really the version number of the flash movie but of the ActionScript Virtual Machine (AVM) used. Flash applications using ActionScript 1/2 (flash <=8) work with AVM1 and these using ActionScript 3 (flash 9-10) work with AVM2, and both are not compatible.
AVM2 have instances of AVM1 and you can load flash<=8  applications into a flash 9 or flash10 but you cannot load flash 9 or 10 into flash <=8 movies... I don't know if it's really clear...
Anyway, it's a flash 6 universal loader with progress event and flashvars, that can load and execute flash 9 or 10 applications.

Lire la suite

Haxe New Way to Dock !

13.05.2008 3999 1

I'm proud, to present the cover of the next Flash&Flex Developer's magazine !

Lire la suite

Same source code for different plateforms using Haxe - Flash / JavaScript component sample

19.04.2008 6137 2

You can find many frameworks or libraries, plateform dependant, that help you writing your applications. You can, for exemple, find UI components, motion tweens libraries for flash (like caurinaTweener) and for JavaScript (like JavaScript Motion Tween). Each plateform is different and each library has its own API, that you have to learn and sometimes it's the best way to give you reason for hanging .
Of course you can write your own libraries that use the same API for the different plateforms you target, but as everyone should know, coders are lazy.
Haxe targets Flash and JavaScript, and thanks to the conditional compilation, you can easily build libraries having the same API and behaviour on different plateforms and sharing same, common source code.
Here comes an little example of a Button component having the same appearence and  behaviour on Flash9 and JavaScript. 70% of the source code is common for both plateforms... Less time spent on building and debugging our library. It's a great news since time is money, and we don't want to loose money, right?

Lire la suite

FEffects 0.1.0 for Haxe (Tween for Flash8, Flash9 and JS)

13.04.2008 7031 1

This is a little package that I wanted to create including some tweens, sine loops effects (will come soon) and others effects that change values in time.
For now, a Tween class and easing equations (ported to Haxe), are available for flash8, Flash9 and JavaScript.
Here is a sample :
Chips :

Lire la suite

Haxe/PHP : Nouvelle plateforme pour Haxe

11.04.2008 3556 4

Aujourd'hui, a été publié ce post, par Franco Ponticelli, annonçant la sortie de la version alpha 1 de ce projet. Haxe cible désormais le PHP...en gros : t'écris en Haxe et ça te pond du php nickel derrière.
J'ai craqué. J'ai fais le petit "Hello World" qui suit.
C'était dans l'ordre des choses...

Lire la suite

Sexy, light mp3 player

22.12.2007 7756 7

I've written a little mp3 player using SWFMill and Haxe.
3 params available:

  • file : mp3's URL
  • text : caption
  • loop : 'true' or 'false'

Noting new here, let see the sources.

Lire la suite

Using AS3 project from Haxe as library asset

21.12.2007 6667 7

This post is an extension of this one talking about flex in haxe without external loading.
When you want to use a SWF made with the Adobe Flash 9 or with the free mxmlc compiler, you have several ways in Haxe.
The easy one is to load this SWF as external data. And then working with the .hx header classes generated from the AS3 project.
But if we want have only one SWF output file, we have to "merge" the 2 projects.
Here come a weired way to do that but it's the only one I've found

Lire la suite

Haxe / JavaScript Test Shoot'em up 100 lignes de code

02.12.2007 9935 5

Je suis un bricoleur en javascript mais Haxe m'a donné envie d'essayer de faire quelque chose d'un peu propre.
J'ai donc fait un petit jeu tres rudimentaire et simple à base de HTML, CSS et JavaScript (ecrit en Haxe ).
On peut voir le jeu ici.

Lire la suite