Flash Q
- Started
- Last post
- 4 Responses
- ok_not_ok
Hello
Is there a faster way of using TextFormat to italicize a portion in the middle of a long dynamically loaded text file?
I can use trial and error in guessing the beginning and ending index numbers but it's just taking so much time and I have 15 text files to work on.
Please kind Flash Gurus..help this poor wet puppy... :(
Thanks!
- Beech0
You can use html text. i think its
yourtext file_txt.htmlText
- Beech0
Also make sure you have render as html ticked on the property inspector and then you can add it in your code.
- caseyc0
I would say use html tags in the text but it all depends on what you are doing. If you have a specific string in mind here is something to get you started:
txtstring = "I can make some text italic";
searchfor = "some text";
istart = txtstring.indexOf(searchfor);
iend = istart + searchfor.length;
trace(txtstring.substring(istart...
- ok_not_ok0
Doh!
of course "my_txt.htmText"
thanks for the help beech and casey