Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic text support ? #27

Closed
yordan-kanchelov opened this issue Dec 26, 2016 · 2 comments
Closed

Dynamic text support ? #27

yordan-kanchelov opened this issue Dec 26, 2016 · 2 comments

Comments

@yordan-kanchelov
Copy link

Was it considered to be able to change the text in a textfield runtime and is it possible to accomplish ?

@bigtimebuddy
Copy link
Member

Yes! All text is dynamic in PIXI. If you give a text field an instance name within Animate (e.g. "myInput") you can then address the field dynamically as a property of the MovieClip it's within.

For instance, you can use the callback after loading the PixiAnimate stage, to get a reference to your text field object (PIXI.Text)

PIXI.animate.load(lib.MyStage, stage, function(instance){
    instance.myInput.text = "Hello!";
});

@yordan-kanchelov
Copy link
Author

Super ! I was maybe mistaken by the documentation, because I didn't saw it as prop and didn't tried it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants