Hopefully you will find some application for the functions presented in this tutorial, and perhaps you have even been given the inspiration to write your own string manipulation functions.
By completing this tutorial, you should now be familiar with the following:
Passing arguments to a function.
Returning a value from a function.
These Flash 5 predefined functions: indexOf, lastIndexOf, length, substr, substring.
Manipulation of string values.
Since most string manipulations require several steps or even looping, it is important to remember to use the trace function in Flash 5 to keep an eye on what is happening with your variables. And remember to thoroughly test your functions for flaws. This will ensure that your functions are prepared to deal with every possible scenario they may encounter.
|» Level Advanced|
Rating: 8 Votes: 38
|Kory Roberts is a part-time Flash developer. He is the author of ScoreKeeper and has experience integrating Flash with other scripting languages, such as Perl/CGI and PHP.|
|Download the files used in this tutorial.|
|Download (11 kb)|
|More help? Search our boards for quick answers!|