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))
3 comments:
Nice demo ;)
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
That is great!
Post a Comment