开发者

Is there a good alternative to 'onAdded' for actionscript2 ?

开发者 https://www.devze.com 2023-04-12 17:07 出处:网络
I\'m trying to write a actionscript 2 component that collects all the TextField text values in the movie. With actionscript 3, I listen to Event.ADDED 开发者_如何学JAVAfrom the stage, get notified whe

I'm trying to write a actionscript 2 component that collects all the TextField text values in the movie. With actionscript 3, I listen to Event.ADDED 开发者_如何学JAVAfrom the stage, get notified when a displayobject is added, and then loop through all stage children to find textfields and their values.

With actionscript 2 though, I can't find an equivalent event to detect when TextFields are added to the stage, so I've resorted to looping through all stage children on each onEnterFrame event.

Is there a better way?

0

精彩评论

暂无评论...
验证码 换一张
取 消