Created
October 18, 2012 10:23
-
-
Save rozd/3910895 to your computer and use it in GitHub Desktop.
as3-states-proof-of-concept
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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