Template path

Is it possible to navigate to a template using its path property on a button, for example? I want to click a button and template called Tank_Stats shows up on a window…something like that.

Thanks.

Just modify the tempaltePath property from the button.

event.source.parent.getComponent('myTemplate').templatePath = "Tank_Stats"