A bit of help with a script

Hey all - here’s what I want to do. I want to make a script that will search for each element on the stage, if it is a textbox, I want it to change the .embedfonts to true. I just want to do this so I don’t have a bunch of the same code… but I don’t know how to find each element on the stage. Ideas?