# Making a Global String Variable visible to MovieClips

**URL:** https://forum.kirupa.com/t/making-a-global-string-variable-visible-to-movieclips/289754
**Category:** Uncategorized
**Created:** [June 4, 2009, 11:24am UTC](https://forum.kirupa.com/t/making-a-global-string-variable-visible-to-movieclips/289754 "2009-06-04T11:24:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![W00tAlors](https://avatars.discourse-cdn.com/v4/letter/w/7ea924/32.png) [@W00tAlors](https://forum.kirupa.com/u/W00tAlors)
#### Post date: [June 4, 2009, 11:24am UTC](https://forum.kirupa.com/t/making-a-global-string-variable-visible-to-movieclips/289754/1 "2009-06-04T11:24:54Z")

</div>

Hi all, first post and unfortunately its one asking for help.

I mostly use flash for the animation, so my action script tends to be mostly functional.

I am now however having an issue, i am using a variable called language which I am setting in frame one as “dutch”, “english” , “german” etc…  
Im then using this to set dynamic text as appropriate in each frame as necessary.(and yes i may switch this to case statements :hr: )

_[COLOR=blue]if (language == “dutch”)  
{ tcMC.peasantBubble1.peasantSpeech.text= “Bescherm je een schat?”};[/COLOR]_

My problem is however that one Movieclip does not see the language variable.

Is there anway in CS4 i can direct it to where it is, or define the varibale instead to be global (perhaps id have to change it from a string though)?

Thanks for any Help.
