Check stage for bitmaps

In actions script 2.0 you can write code like this:

 
for (Prop in _root)
{
     trace(Prop)
     if(Prop.substr(0,3) == "btn")
     {
           _root[Prop]._visible = 0;
     }
}

This will allow for you to check what is on the stage, but if you put a static image on the stage the for Prop in code does not detect the image on the stage. Is there a way to detect images on the stage?

Thanks daniel