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:
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 = )
codeBlock.htmlText=variable2;
variable2 would look like:
<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
thisLink:String=variable3;
variable3 would be:
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
mcColor:String=variable4;
variable4 is:
0xFF0000
I have a txt file set up like this, but it’s not quite working.
&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?