Is it possible to reference subcomponent attributes with onClick?

Is it possible to control multiple components without controller being on same level? Thanks in advance. Ie buttons on top level of scene controlling sub components.

the components can be on any level, but the onclicks must be on same, the attributes with modified values can be passed

Thank you for reply, I found work around by adding variables at component level allow me to change state at a level above .