-
1. Re: mc.name.slice(5,9)
Ned Murphy Oct 21, 2011 9:39 AM (in response to StoneChameleon)An objects name property is a String. The slice method of the String class returns a portion of the String. In your case, it returns the portion of the mc's name including characters 5 thru 8.
You should look up things like this in the help docs to gain understanding of how things work.
-
2. Re: mc.name.slice(5,9)
StoneChameleon Oct 21, 2011 9:50 AM (in response to Ned Murphy)Thank you, Ned,
I couldn't find the slice part in the help docs, but since I know it's there now I'll go back and search again. Chances are, I overlooked it somewhere. Go figure.
Again, thank you. I'm off to do another search (more thorough this time around).
-
3. Re: mc.name.slice(5,9)
Ned Murphy Oct 21, 2011 10:52 AM (in response to StoneChameleon)One easy way to search the docs is to highlight the code word in the actions window then right click it and select View Help. It will normally bring you to a/the page that discuss the class/property/method you highlighted.
-
4. Re: mc.name.slice(5,9)
StoneChameleon Oct 21, 2011 11:57 AM (in response to Ned Murphy)That rocks, thank you.
-
5. Re: mc.name.slice(5,9)
Ned Murphy Oct 21, 2011 3:17 PM (in response to StoneChameleon)You're welcome



