haxework 0.6.0

Framework.

Released 2017-07-11.

To install, run:

haxelib install haxework 0.6.0

See using Haxelib in Haxelib documentation for more information.

Maintainershmyga
Websitehttps://bitbucket.org/shmyga/haxework.git
Current version0.6.0
StatisticsInstalled 69 times
LicenseBSD
Tags flash

README.md

haxework

Gui framework for Haxe.

View

haxework.gui provides views classes.

Example

Build form using haxework.gui.ViewBuilder.

form.json:

{
  "type":"haxework.gui.VGroupView",
  "skin":{"type":"haxework.gui.skin.ColorSkin", "color":"0xffff00"},
  "paddings":20,
  "layoutMargin":10,
  "views":[
    {
      "id":"view1",
      "type":"haxework.gui.SpriteView",
      "pWidth":100, "pHeight":100,
      "skin":{"type":"haxework.gui.skin.ColorSkin", "color":"0xff0000"}
    },
    {
      "id":"view2",
      "type":"haxework.gui.SpriteView",
      "pWidth":100, "height":50,
      "skin":{"type":"haxework.gui.skin.ColorSkin", "color":"0x00ff00"}
    }
  ]
}
@:template("form.json")
class FormView extends VGroupView implements ViewBuilder {}

var form = new FormView();
Root.bind(form); // Add form to stage as root view element.
trace(form.view1);
trace(form.view2);

Loader

haxework.net provides loaders classes.

Example

new JsonLoader().GET("http://example.com/file.json")
  .then(function(data) {
    trace("Json Ok: " + data);
  })
  .catchError(function(error) {
    trace("Json Fail: " + error);
  });