Object has no attribute 'getComponent' in actionPerform script

Hi guys

I am current working on a button that has a script as shown below . I am just wondering is it possible to use getComponent from onActionPerformed event ?

many thanks

in perspective, there is no ‘getComponent ()’. use .getChildren ()


1 Like

thank you so much !
it works