Globalising function for TextFormats

Hi there, i want to make a function to globalise (_global.) TextFormat’s that have loaded in so that i can use them from any movie. The function needs to do this:

_global.H1_textFormat = H1_textFormat;

but then for all TextFormat’s. I was thinking of something like:

  
function globaliseStyles(){
for (instances of TextFormat){ 
_global.this = this; 
delete this;
//(this=the textformat)

}

Clearly this is faulty but can someone show me how to do this?

basicly i need to list all the TextFormat names

check the manual (actionscript dictionary):
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary788.html