example of the Apdev SpellChcker class

You can now easily use the Squiggly spell-checking library with every TextField in Actionscript (not only Flex).

import com.apdevblog.text.spelling.ApdevSpellChecker;
// ...

// create + add new TextField
var txt:TextField = new TextField();

// create new SpellChecker and set TextField as target
// second parameter is the URL to the dictionary
var url:String = "data/usa.zwl";
var checker:ApdevSpellChecker = new ApdevSpellChecker(txt, url);

you should see our spellchecker here (alternativ content)

© 2009 apdeblog.com