# Globalising function for TextFormats

**URL:** <https://forum.kirupa.com/t/globalising-function-for-textformats/123507>\
**Category:** Uncategorized\
**Created:** [September 24, 2004, 9:13am UTC](https://forum.kirupa.com/t/globalising-function-for-textformats/123507 "2004-09-24T09:13:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bape](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bape](https://forum.kirupa.com/u/bape)\
**Post date:** [September 24, 2004, 9:13am UTC](https://forum.kirupa.com/t/globalising-function-for-textformats/123507/1 "2004-09-24T09:13:49Z")

</div>

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:

```auto
_global.H1_textFormat = H1_textFormat;

```

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

```auto
  
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?
