In the program given at https://feathersui.com/learn/haxe-openfl/stack-navigator/, there are two classes ViewA and ViewB. These two classes are defining a variable with name layout as follows:
layout = new VerticalLayout();
However this variable has not been used inside these classes. But when I am removing this code then in output the value of label is not being displayed. Only buttons are being displayed. When using this layout variable then label is also appearing in the output. When layout is not connected with label in any way then why label is not displaying on removing the variable layout? Can any one explain it to me?
Best Regards ...