# Access all objects in scene

**URL:** <https://forum.kirupa.com/t/access-all-objects-in-scene/234035>\
**Category:** Uncategorized\
**Created:** [July 29, 2007, 11:40pm UTC](https://forum.kirupa.com/t/access-all-objects-in-scene/234035 "2007-07-29T23:40:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Chen](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@Michael\_Chen](https://forum.kirupa.com/u/Michael_Chen)\
**Post date:** [July 29, 2007, 11:40pm UTC](https://forum.kirupa.com/t/access-all-objects-in-scene/234035/1 "2007-07-29T23:40:12Z")

</div>

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.
