flash external txt Q
- Started
- Last post
- 4 Responses
- krust
i'm loading an external txt file into a dynamic text box (white text)...
problem is... it appears on top of a random image, and some of the images are really light so the text gets washed out.
is there anyway i can script a black block to appear behind every character in the txt file... so visually it would look kinda like i had highlighted the text?i'm thinking not, but if you have any ideas, please let me know....
cheers
- kinetic0
couldn't you just put a black movie clip with opacity behind the text box
if you are worried about the size fitting properly, just stretch the movie clip to the text._length
(figure out how many chars fit on a line in your text box and you can figure out the height -- or make your textbox._autoSize = true then it will scale and just size the mc to the textBox._height)
- krust0
cheers, yeah that's probably my only option, but i kinda wanted the effect of a black box for each line, so you get a jagged ending.
- kinetic0
ahhh, i see what you mean...
you could possibly do that by figuring out the string length then figuring out how many chars can fit per line ... divide the length by that number to get the number of lines...then duplicate the black movieclip to how many lines there are and place at the proper spaces
- krust0
hmmmm, might try and figure that one out, thanks dude.