Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Tristate button with caption
007 Fonts
123 Flash Menu
Macromedia Director Workshop
VideoCodecCheck II
Check valid date
PrefsFolder XObject
Make Bitmaps from Flash
A Simple Back Button
RoboDemo Review
 

 

 

Project Example Text Services API v2.2

Added on 3/19/2003

 

Compatibilities:
Mac PC Script

This item has not yet been rated

Author: Magnamerc

Basic text functions for Director.

Get the source
Basic text functions for Director.

-- TSAPI_Find(search_string, content_string, case_sensitive, start)
-- returns index of match, or 0 if no match
-- case_sensitive is an optional boolean
-- start is optional char index, defaults to 1

-- TSAPI_Compare(string1, string2, case_sensitive)
-- returns 1 if string1 and string2 match, 0 if no match
-- case_sensitive is an optional boolean

-- TSAPI_Replace(search_string, replacement_string, content_string, case_sensitive, boundary)
-- returns string with replacement, or original string if no match
-- boundary can optionally be set to 'ALL' to replace all occurences of search_string
-- case_sensitive is an optional boolean

-- TSAPI_InsertBreaks(str, maxCharPerLine)
-- returns string with breaks inserted between words
-- maxCharPerLine specifies the maxlength of a line including spaces before a break is inserted

-- TSAPI_ConstrainStringSize(str, maxLength, stringEnder)
-- returns string truncated to max length, appends stringEnder

-- TSAPI_ToUpperCase(str)
-- returns string converted to lower case

-- TSAPI_ToLowerCase(str)
-- returns string converted to upper case

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail