TEXTCRUNCHER XTRA HELP: LIMITATIONS | ||
- IMPORTANT: TextCruncher is available for Director 11, in order to allow distribution and upgrade of legacy content. However, Director 11 uses a different string encoding (Unicode, specifically UTF8) in all internal string representations. As a result of this change, several functions of TextCruncher are no longer relevant, and have been deprecated or superseded by built-in commands. These limitations and the recommended workarounds are documented at this page.
- Under JavaScript only, TextCruncher's SetPosition and GetPosition commands conflict with commands of the same name inside Macromedia's FileIO Xtra. In order to use the commands, create a Lingo movie type script with the following code: on tcSetPos pos SetPosition (pos) end
on tcGetPos return GetPosition end In your JavaScript code, substitute "tcSetPos" and "tcGetPos" for the SetPosition and GetPosition commands, which will call the Lingo wrapper script to execute the commands.
- The function HardAlignTextRight does not currently work under Mac OSX.
- ReplaceFirst and ReplaceNext ignore the current case-sensitivity setting set by SetCaseSensitivity for high-ASCII (above numtochar(125) ) characters. For high-ASCII characters those two methods are always case-sensitive.
- Lingo treats the character numToChar(0) as end of string. If you read a string in from an outside source containing numToChar(0) Lingo will truncate the string at that point. TextCruncher will not be able to operate on such a string correctly, nor will Lingo. Normal text files do not contain character 0. set astring = "cat" & " " & numtochar(0) & "dog" put astring -- "cat " put length(astring) -- 8
- TextCruncher does not work with double-byte character sets on Director MX2004 and earlier. Also, some TextCruncher commands such as ToUpperCase, ToLowerCase,URLEncode and URLDecode were designed to work with the Latin-1 character set and will not work with other 8-bit character sets.
- Certain versions of Director cannot display more than 32K of text in the Message Window at a time. During development, put results from TextCruncher functions into rich text members rather than the Message Window to examine them, or put them into global variables and use chunk commands like "put line 5 of myGlobal" to examine smaller sections.
- If EasyBase Xtra is present in the Xtras folder and TextCruncher Xtra is added to the folder, EasyBase Xtra will prevent TextCruncher Xtra from loading and Director will display a "Duplicate Xtra" dialog. Workaround is to temporarily remove EasyBase Xtra and restart Director. Then add EasyBase Xtra and start Director again. At this point both xtras can load but the bogus "Duplicate Xtra" dialog will still appear. |