biju george wrote:
Hi,

I have an swf file with 11,758 frames. Its actually an
e-book. I want to add a search facility in director in
the form of a full text search like the one in google
etc. Such that the use can key in any word and see the
pages containg that word in a scroll box. Once a
highlighted word is clicked, it should fetch to the
frame in flash containing that word.

Should I use V12 database xtra's full text search or
any other better approach?...Any help will be much
appreciated.

Biju.

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
[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!]


I did something similar several years ago with far less data... 'bout 4000 company data records for a kiosk... but I know it is possible. What I did was build my own indexing functionality. You determine what makes up a word that you want to search on (excluding a, the, and, or, etc.) and you loop through all the words, putting each unique word into a proplist that contains the word and all the places that word was found. This index can then be exported to a text file if you want, or you could just add it to a database using valentina or v12. Sounds like it may take some flash<=>director communication though, and building the index may take a while since text parsing in AS isn't nearly as fast as in director, from what I have found. You may want to write a function that just pulls all the text data into director a page at a time and index it that way.

When I did my own indexing system I tried to save money (since I had the time) and write my own database complete with queries and such. Needless to say that is not necessary and ends up being much slower than many xtra solutions....but for my needs it worked... plus it is a beautiful thing when your whole database is loaded into memory and full-text keyword searches are instantaneous :0)

Don't know much about V12 so I will defer to people who have experience with that product, but I know Valentina could work, perhaps look into the Arca database xtra from tabuleiro as well...looks like a really nice and usable solution created especially for Director users. If you do use an xtra, be sure to brush up on some sql, it can make your life a lot easier doing this kind of thing!

~Mathew



[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