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