« Preview of things to come AIRTIGHT - SimpleViewer Download »

Flash Text Notes

November 2 2004

When parsing a text string into movieclips containing individual letters and then trying to get the .textwidth property of each successive letter it helps if you set the letter of the movieclip before you try and get its textwidth.

The inheritance is: Holder.innerTextBlock.innerText

txtString = "Example String of Text";
xPos = 0;
for (i=0; i
holder.duplicateMovieClip("holder"+i, 100 + i);
this["holder"+i]._x = xPos;
this["holder"+i].innerText = txtString.charAt(i); //

Comments ()