# \_global. Function help needed

**URL:** https://forum.kirupa.com/t/-global-function-help-needed/273130
**Category:** flash
**Created:** [October 11, 2008, 7:20pm UTC](https://forum.kirupa.com/t/-global-function-help-needed/273130 "2008-10-11T19:20:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Martha\_Stewart](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Martha\_Stewart](https://forum.kirupa.com/u/Martha_Stewart)
#### Post date: [October 11, 2008, 7:20pm UTC](https://forum.kirupa.com/t/-global-function-help-needed/273130/1 "2008-10-11T19:20:12Z")

</div>

Hi Everyone,

CS3/AS2

I am attempting to use the TextMetrics class in a \_global. function, but I’m unsure as to the relationship between the function and the mc layer calling it. If you could take a quick peek at my code it would be greatly appreciated.

A side note: if you have time… i believe that there will be a conflict if this function is called multiple times from the same mc, any heads up on preventing this would be awesome.

The Class used can be found here: [http://blog.greensock.com/textmetrics/](http://blog.greensock.com/textmetrics/)

My test Movie: [http://drop.io/textmetrics](http://drop.io/textmetrics)

Thanks everyone,

Martha
