Access all objects in scene

Hi Everyone,

I’ve got some textfields in my Flash document. Some created at authoring time, while a few others created dynamically at runtime.

What I’d like to do is to go through all the items on the stage. Check if it’s a textfield. If so then modify a property (such as colour or text).

This is my algorithm…

for all objects in the scene {
check if it’s an instance of the textfield class {
change property
}
}

I was wandering if it’s possible to write a for loop which can access all the objects in a scene?

Thanks in advance.