|
|
|
Spell Check Xtra
Added on 4/6/2007
|
This is a scripting xtra for Macromedia/Adobe Director. This is an extremely fast self contained spell checker. It provides suggestions as well as various find and replace procedures.
Price: $0
Mediamacros makes no guarantees that this price is correct
Get the Xtra
Spell Check Xtra
CLICK HERE TO DOWNLOAD!
ABOUT
Created by Kevin Richard Fink
April 5th 2007
THIS XTRA IS PROVIDED AS IS, WITHOUT ANY IMPLIED WARRANTEE! FOLLOW INSTRUCTIONS CAREFULLY AND USE AT YOUR OWN RISK!
This is a work in progress xtra, as such some features are not yet fully operational. Here is the current status of each call:
Complete features: (stable)
FindAndReplace(word, lookFor, replaceWith) -- Replaces a part of a
string in a string with another string. Returns the result.
FindAndReplaceAll(word, lookFor, replaceWith) -- Replaces all parts of a
string in a string with another string. Returns the result.
CheckWord(Word) -- Returns true if the word is spelled correctly
GetSuggestions(word) -- Returns a list of words closely matching
the specified word.
INSTALLATION
Simply extract and copy "SpellCheckXtra.x32" to your xtra directory of your Director Installation
HOW TO USE
-----------------------------------------------------------------------------
checkWord (Object me, String word)
DESCRIPTION:
Returns true if the word is spelled correctly, false if it is not.
USAGE:
object = new(xtra "SpellCheckXtra")
put object.checkWord("test")
-----------------------------------------------------------------------------
getSuggestions (Object me, String word)
DESCRIPTION:
Returns a list of strings closely matching the word specified
USAGE:
object = new(xtra "SpellCheckXtra")
if object.checkWord("testz") then
alert object.getSuggestions("testz")
end if
-----------------------------------------------------------------------------
findAndReplace (Object me, String word, String lookFor, String replaceWith)
DESCRIPTION:
Replaces a string within a string with the specified string.
USAGE:
object = new(xtra "SpellCheckXtra")
alert output.findAndReplace("Testing", "tin", "lg")
outputs:
"Teslgg"
-----------------------------------------------------------------------------
findAndReplaceAll (Object me, String word, String lookFor, String replaceWith)
DESCRIPTION:
Replaces a string within a string with the specified string.
USAGE:
object = new(xtra "SpellCheckXtra")
alert output.findAndReplace("Testingtin", "tin", "lg")
outputs:
"Teslgglg"
|
|