Blog

Haxe, NME, openFL, Flash, HTML5 and mobiles posts and experiments

hScript

07.24.2008 4106 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.

Read more

XiLib for Haxe

06.16.2008 6991 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

Read more

Unified Flash 6 - Flash 10 Loader

05.28.2008 3948 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.

Read more

Haxe New Way to Dock !

05.13.2008 4139 1

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

Read more

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

04.19.2008 6276 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?

Read more

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

04.13.2008 7189 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 :

Read more

Haxe/PHP : Nouvelle plateforme pour Haxe

04.11.2008 3684 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...

Read more

Sexy, light mp3 player

12.22.2007 7879 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.

Read more

Using AS3 project from Haxe as library asset

12.21.2007 6790 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

Read more

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

12.02.2007 10097 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.

Read more
×