Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
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.
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.