openfl view example
This commit is contained in:
@@ -17,7 +17,9 @@ class ViewExample implements ButtonViewListener {
|
||||
}
|
||||
|
||||
public function new() {
|
||||
var form:Dynamic = new Form().value;
|
||||
//var form:Dynamic = new Form().value;
|
||||
var bytes = openfl.Assets.getBytes("examples/form.json");
|
||||
var form:Dynamic = haxe.Json.parse(bytes.readUTFBytes(bytes.bytesAvailable));
|
||||
var v:IGroupView<Sprite> = GuiBuilder.build(form, {listener:this});
|
||||
new Root(v);
|
||||
var button3:ButtonView = v.findViewById("panel:button3");
|
||||
|
||||
Reference in New Issue
Block a user