Un livre gratuit sur flash 9

Un tres bon livre gratuit, qui explique vraiment bien les subtilité d'actionscript 3 :

Ici

ET c'est gratuit !

(A french book about as3, free)

Localize flash text (part 1)

For my project, I need to localize my english website in many different langage.
I don't want to use resource buddle for one simple reason : i don't want compile 10 version of my website each time I do a small fix !!!!
So i find on the net a solution :
1) download a resources xml :
[Bindable]
private var $:XML

public function init():void
{
loadResources("trans_fr.xml")
}

private function loadResources(xmlURL : String) : void
{
var myXMLURL:URLRequest = new URLRequest(xmlURL);
var myLoader:URLLoader = new URLLoader(myXMLURL);
myLoader.addEventListener("complete", xmlLoaded);
}

private function xmlLoaded(e:Event) : void
{
$ = XML( URLLoader(e.target).data);
}

So $ is your resources now !
2) How use it :
mx:TitleWindow layout="absolute" title="{$.Tool}" width="194" height="212" ...

The title is localize now !

3) how look the resources files :
<resources locale="fr">
<tool>Outils</tool>
<new>Tout effacer</new>
</resources>

Save it as trans_fr.xml in the same directory than your application, and all is ok !
The only problem for now, it is we didn't choose the langage.Let's do it in a second part !