Hi all…
I’m building a scrolling marquee. Simple enough, but I’m wondering if someone can help me with one aspect of it.
I’m passing several strings of text via php that will scroll by in the marquee. These strings are all different lengths, some short, some very long. I’m populating a dynamic text box inside a movie clip. The problem is, is that I don’t know the best way to size this text box. The best way I could think of was to pass the total number of characters in my text to the movie and then do this:
_root.myMovie.myTextBox._width = _root.numChars * 7
7 seems to be the magic number, anything smaller cuts some of the end of the text off. Anything longer gives me too big of a box. I need to get it as close to the size of the actual text as possible, because I’m checking for the end of the text box to go by before I send the next string across the marquee with a duplicateMovieClip function.
Hope this makes sense, if someone has a better way or suggestions, please help! Thanks in advance…