# Globalising function for TextFormats

**URL:** <https://forum.kirupa.com/t/globalising-function-for-textformats/65240>\
**Category:** Uncategorized\
**Created:** [September 24, 2004, 9:13am UTC](https://forum.kirupa.com/t/globalising-function-for-textformats/65240 "2004-09-24T09:13:49Z")\
**Posts on this page:** 3\
**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/65240/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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 10:22am UTC](https://forum.kirupa.com/t/globalising-function-for-textformats/65240/2 "2004-09-24T10:22:01Z")

</div>

basicly i need to list all the TextFormat names

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 1:45pm UTC](https://forum.kirupa.com/t/globalising-function-for-textformats/65240/3 "2004-09-24T13:45:41Z")

</div>

check the manual (actionscript dictionary):  
[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary788.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary788.html)
