문제

I have some components that are created at run time, I would like to execute functions in those components during certain parent events.

Problem is this only works with components I create before runtime.

EG I can go this[SomeComponent].BorderShow(); if SomeComponent was already in the code.

How ever if I add new components to the stage on the fly I cant go

this[SomeNewComponent].BorderShow()

Can someone please advice how I could pass a function the name of component as a string and then have said function execute a function or method from the component.

Please and thank you C

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top