How to change the dynamic textbox background color through text file
I would like to change the dynamic text box background color through external text file like displaying the contents from text file by loading in flash movie.
myText.textColor = myTextColour;
// changes the text color to red
myText.background = true;
// sets the background visibility to true
myText.backgroundColor = myTextBGColour;
// changes the background color to grey
Hope this helps...
Please follow the Flash Kit Forum Footer Guidelines or FKFFG found here.
I worked on ur code, still its not working first simply i placed ur code in text file and flash and Text box background color displayed in dark grey color, after changing color in text file also displaying the same color in my movie. I think some problem with loading so i worked in another format. Still Its not working and nothing displaying.
Can u download this file and see what i've done mistake.
Before giving you the answer, pls remember, we all have tasks we have to complete asap, which means that taking time out for your task takes time away from our own. Impatience on the forums normally leads to no help at all.
I am not creating a new file for you, zipping it, uploading it to my FTP space etc, it takes too long. So follow these steps:
New text file with this in it (no carriage returns at the end of the line):
Code:
myTextColour=0xFFFFFF&myTextBGColour=0xFF0000&content=Hello World
New .fla with this in it:
Top layer:
Text Field as you had it named myText