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 ;)