Skip to content

Instantly share code, notes, and snippets.

@rozd
Created October 18, 2012 10:23
Show Gist options
  • Save rozd/3910895 to your computer and use it in GitHub Desktop.
Save rozd/3910895 to your computer and use it in GitHub Desktop.
as3-states-proof-of-concept
States.host(this)
.state("disabled")
.child("titleLabel")
.width(100).height(100)
.size(100, 100)
.x(10).y(23)
.position(10, 23)
.text("disabeled state")
.set("textFormat", tf)
.end()
.add("greetingLabel", new TextFileld())
.position(0, 0)
.set("width", 100)
.end()
.remove("firstNameLabel")
.end()
.state("A")
.child("titleLabel")
.size(100)
.end()
.state("B", "A")
.child("titleLabel")
.disable()
.end()
.state("C", "B")
.child("titleLabel")
.enable()
.handle("creationComplete", handler)
.end()
.ok();
States.host(this).go("disabled").complete(completeHandler).error(errorHandler);
States.host(this).normal();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment