Search Tutorials
The Details Part 1 Now we get into the details. It might be helpful at this point to re-open Page 4: The Function in a new window so you have a ready reference to the entire function as we go through it line-by-line. The following are predefined functions used in our search and replace function. It might be helpful to read about these in the Flash 5 ActionScript Dictionary. String.indexOf(start, length); String.lastIndexOf(substring); String.length; String.substr(start, length); It might be worth noting that there is also a predefined function called String.substring(from, to) which is not used in our search and replace function. This predefined function uses a slightly different way of indexing than String.substr(start, length).
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|