# External Variables help

**URL:** <https://forum.kirupa.com/t/external-variables-help/313476>\
**Category:** flash\
**Created:** [August 31, 2010, 5:52pm UTC](https://forum.kirupa.com/t/external-variables-help/313476 "2010-08-31T17:52:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sg123](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sg123](https://forum.kirupa.com/u/sg123)\
**Post date:** [August 31, 2010, 5:52pm UTC](https://forum.kirupa.com/t/external-variables-help/313476/1 "2010-08-31T17:52:41Z")

</div>

I’ve got this custom video player project I’m working on. I’m so close to being done, but the one thing that’s standing in my way is setting up an external file to define 4 variables.

1 is a simple text string:

```auto
title.text=variable1;

```

variable1 would be something like:  
**My Project’s Title**

1 is a text string that displays a block of HTML code (using ascii for \<, \>, " and = )

```auto
codeBlock.htmlText=variable2;

```

variable2 would look like:

```auto
<object width="800" height="450"><param name="movie" value="player.swf"><embed src="player.swf" width="800" height="450"></embed></object>

```

1 is a URL

```auto
thisLink:String=variable3;

```

variable3 would be:

```auto
http://www.twitter.com/home?I%20made%20this%20http://www.mylink.com

```

1 is a hex code used to control the tint of an MC

```auto
mcColor:String=variable4;

```

variable4 is:

```auto
0xFF0000

```

I have a txt file set up like this, but it’s not quite working.

```auto
&videoTitle=Project:ORION Episode 100&twitterLinkage=http://www.twitter.com/home?Check%20this%20out%20http://www.legendzero.com/forum&embed_code=<object width="800" height="450"><param name="movie" value="player.swf"><embed src="player.swf" width="800" height="450"></embed></object>&colorHexCode=0xFF0000

```

Any ideas how I can fix this?
