Small online tutorial

Wednesday, August 12, 2009

Here's a little interactive tutorial, the black window in swf below is the Console class, its got one textfield which traces results, and another (the lighter, single-line input at the bottom) which parses hscript. Type the following code in the console, type 'help' to see a list of other commands:
new haxegui.Window().init();
// window name might vary here, can type 'ls' to make sure
cd Window19
// following is written in a single line to preserve the scope
var c = new haxegui.containers.Container(this); c.init();
// following also might differ at runtime
cd Container29
//
var tf = new flash.text.TextField(); this.addChild(tf);
this.firstChild().text="hello world"
ok now for something more fun:
cd ..
// should be back in root.Window19
this.updatePositionTween(new feffects.Tween(0,1,1000), new flash.geom.Point(200,200))
Update:

Here's a screencast of me following the tutorial, then loading an example layout from the svn and playing with it a little, please excuse the jittery mouse tracking...

3 comments:

Franco said...

Nice demo ;)

David Wilson said...

While this is nice, I have yet to see a tutorial on how to use haxegui anywhere. It would better to stumbling around in the dark

Bram said...

That is great!

Post a Comment