Public Voice Network
- You're at a party and… 1515
- Famous Street Artists 88
- the gif animation thread 1845218452
- What are you listening to… 55795579
- Amy's Baking Company 110110
- LA Life 88
- Star Trek Into Darkness 5858
- Really? 3535
- Tornado season 108108
- TITS GIF 1212
- iPhone Apps of the Day 9292
- Xbox: New Generation Reve… 6666
- Anywhere in the USA 55
- I ❤ Wood 330330
- CNN Fail of the Day 2727
- Stag Do - London 22
- The Silk Road 1414
- Pic of the Day 7470974709
- instagram 655655
- blog 5770557705
- San Francisco 1818
- DaftPunk 209209
- Sci-Fi of the Day 9191
- best on Netflix streaming… 234234
Flash Q 44 Responses
Last post: 8 years, 4 months ago | Thread started: Jan 19, 05, 11:15 p.m.
- 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!
- Jan 19, 05, 11:15 p.m. – Permalink
- caseyc
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...

- Dog-earJan 20, 05, 12:34 a.m. – Permalink



