Flash Q: delete txt from a string
Flash Q: delete txt from a string
- Started
- Last post
- 3 Responses
- mightyj0
Thanks guys, this helps quite a bit!
- fyoucher10
String class:
indexOf and substring
indexOf to get first occurance of the word 'Daily', use the index for D to use for the endIndex for substring's param. Subtring will return a new string from whereever you want to start (0 index probably) to that D (or D's index - 1 or 2)
- PonyBoy0
you could also 'split' the string using the split() method of the String class... find the word and then drop the second string created when you split it...