Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Sometimes you may need to pull a smaller string out of a larger one. For example, you might want to find the first eight characters of a string, or maybe you only care about the part of a line after a colon. ActionScript offers three methods for doing this: slice(), substr(), and substring(). All these methods are similar in intent. They vary only in the way they handle their two optional parameters.
slice(startIndex:Number, endIndex:Number):String