Public Voice Network
- Vid of the Day 1506615066
- Pic of the Day 7474874748
- Been asked to do a legal … 99
- Flat Design 161161
- San Francisco 2525
- blog 5770757707
- London machete attack 3737
- 2013 QBN Mugs 9292
- the gif animation thread 1846718467
- Decriminalize all drugs 1111
- religion 217217
- GIF vs JIF 5454
- good music with fake inst… 55
- News of the day... 659659
- FMT170513 1515
- Soundcloud 149149
- Adobe CS6 "Creative … 103103
- Best Free VST plugins... 11
- New BOC 2828
- You're at a party and… 6868
- What are you listening to… 55865586
- Femen 2626
- DaftPunk 210210
- Yahoo buying Tumblr 1515
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



