I have one more question though:

When I build a standalone application with my current setup, I still need
the translation text file external to the application.  Is there a way to
make it reside inside the application, invisible to the user?

Toma

On 23.09.2002 04:01, "David Vaughan" <[EMAIL PROTECTED]> wrote:

> Toma
> 
> Your global variable is "tTranslations" in the first handler and
> "tTranslation" in the second. Add an "s" to the second one and try
> again.
> 
> cheers
> David
> 
> On Monday, Sep 23, 2002, at 16:28 Australia/Sydney, Toma Tasovac wrote:
> 
>> Hi. �
>> 
>> I have a text file with a tab delimited list of words and
>> translations, i.e.
>> 
>> word1 ��translation1
>> word2 ��translation2
>> 
>> I use the following code to put this file into a variable and then
>> turn it into an array:
>> 
>> on openStack
>> ��global tTranslations
>> ��put url "file:translations" into tTranslations
>> ��split tTranslations with cr and tab
>> end openStack
>> 
>> 
>> Then, I have a field with some text in it. �I want the user to click
>> on a word in the text and have the translation displayed in another
>> field, called �Translation Display� �So...
>> 
>> on mouseUp
>> ��global tTranslation
>> ��select the clickChunk
>> ��put the clickText into tClickedWord
>> ��put tTranslations[tClickedWord] into fld "Translation Display"
>> end mouseUp
>> 
>> And that should be it. �But it�s not. �When I click on the word, it
>> gets selected, but no translation appears in the �Translation
>> Display�. �I get no error messages.
>> 
>> Any ideas on how I should troubleshoot this?
>> 
>> �Toma
> 

_____________________________________
Toma Tasovac
Princeton University
Department of Comparative Literature
318 East Pyne
Princeton, NJ 08544

[EMAIL PROTECTED]
[EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to