Flash Words...
Flash Words...
- Started
- Last post
- 5 Responses
- JamesEngage
How do I extract the number of words there are in a text string... am I being really stupid and missing something... I can get individual characters... but nor words.... aaaggghh!
- rabattski&rabattski0
if it's an array then array.length should tell you how many items there are in that array.
- ozhanlion0
myList = "Peter Piper picked a peck of pickled peppers";
myArray = myList.split(" ");
trace(myArray)
trace(myArray.length)maybe ?
- ozhanlion0
ya of course myarray.length+1
- JamesEngage0
thats what i thought i might have to do... pain in the arse... but n'ver mind
- ozhanlion0
ops. not +1 :)
/me runs and hides in the corner