What’s the difference between getComponent and getComponentForPath?
The function getComponent gets a component inside of the container with a specific name. The component has to be directly inside of the container meaning 1 level deep. The function getComponentForPath allows you to find a component inside of a container based on a path not just a name. The component can be many levels deep.
So either code gets you to the same component
[code]myWindow.rootContainer.getComponent(“myButton”)
myWindow.getComponentForPath(“Root Container.myButton”)[/code]
Correct