Remember values of instance variables

  • 25 favourites

Index

Stats

3,569 visits, 8,654 views

Translations

This tutorial hasn't been translated.

Tools

To see the active Layout on the “stage” insert the following:

This works now only for the first layout properly. For an easy switching between the two layouts and changing the value of “activeLayout”, I add another Button "Button2" in the second layout und delete the instance of the old button "Button" in the second layout:

Ok, let’s save now the text-values of the Text-instances. I create two global Variables “textValuesLayout1” and “textValuesLayout2” – both as type "Text".

How to remember the values at the “start of the layout”:

Voala. We've remembered the value of the instance-variable Text ;)

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!