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?
精彩评论