The SDK was downloaded and extracted from : http://download.macromedia.com/pub/flex/sdk/flex_sdk_2.zip.
File:first.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalAlign="center" verticalAlign="center">
<mx:Button id="myButton" label="Hello Bioinformatics World !" />
</mx:Application>
The file was compiled to flash using the mxmlc command (a java application):
>FLEX/SDK/bin/mxmlc --strict=true --file-specs first.mxml
Loading configuration file FLEX/SDK/frameworks/flex-config.xml
FLEX/test/first.swf (125402 bytes)
> ls
first.mxml first.swf
I then opened first.swf in firefox and...
Whaaaa ! It worked without any problem !!
I'M THE KING OF THE WORLD !!
This looks exciting ! I need a good tutorial ! I need a good tutorial ! I need ....
Pierre :-)
Cool. Thanks for the tutorial! I was just getting ready to try flex out myself. (I downloaded the sdk, but i havn't quite worked up the courage to extract it and try it out just yet). Here is a tutorial on setting it up with Eclipse on Ubuntu if anyone is interested - http://www.dustypixels.com/blog/2006/07/15/flex2-flash9-in-ubuntu/ .. please do post to if you do find any good tutorials :)
ReplyDeleteKeith
The JavaFX technology seems to go in the same direction, with Sun support : http://www.sun.com/aboutsun/pr/2007-05/sunflash.20070508.2.xml
ReplyDeleteIn fact the goal is to replace the awful AJAX.
You may like it, it's a mix of Java, flash, ...