I am trying to construct a search function for a CD-Rom project in Director using Lingo. I have split the projetc into a number of movies, and I want to have a single external cast of text members for all these movies. I have done this so that the texts can easily be updated in other languages at some future point, and also to make the search function easier (or so I thought). I am pretty clear about the logistics of what I need to do, but I cannot sort out the code details (I am a designer not a programmer).

The search set up I propose runs like this:

1) see if the user-enterd text in a "searchWord" sprite is 'contained' in any of the text members.

(I managed this for a simply routine which compares the searchWord sprite with one, named or numbered text member, but I can't work out how to tell Lingo to look at them all. I'm probably being dim, but I can't find how Lingo uses wild cards or generic statements about cast member names and numbers etc, so that I could write a general routine covering all the members of the cast.)

2) write the name of the successful text member (which is preplanned to be a meaningful phrase, and which is also named to match its relevant label in the score) into a "results" sprite.

(again I have done this with the simple routine looking at only one text member, described above, but I can't work out how to get *all* the relevant results written out, and to have them displayed in neat order one under another in a box)

3) These listed results then need to become active links to the actual score, hence the idea of name-twinning text cast members with the labels in the timeline.

(but once more, I don't know how to get the eventual rows of words displyed in the "results" box to act as real, clickable links tied to their relevant score labels. My matching naming convention is obviously essential for this, but how do you actually match up the words produced by the routine with a generic navigation code to make sure they all work like a proper search function?)

I hope this is clear and someone can help with the actual code. I've got a feeling it involves lists and defining global properties or something like that, but I can't get any further. Thanks in advance.

cynglas

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to