Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Creating an Active Search List
Author: Flash Junkie
| Website: http://www.flashkit.com |
Frame 2 V
Comment: ----------------------------------------------
Comment: wait for enough characters
Comment: ----------------------------------------------
If (Length(findit)>=/:minimum_search)
Set Variable: "text" = Eval("/:text"&n)
Here we wait for the user input to be at
least 'minimum_search' characters long. (The reasons for this were
stated above.) We have to check to see if we need to convert
the links list entry to lowercase just like we checked above to see if we needed
to convert the user's input to lower case.
If (not(/:case_sensitive))
Comment: ----------------------------------------------
Comment: convert our search list to l.c.
Comment: ----------------------------------------------
Set Variable: "input" = text
Call ("convert_to_lowercase")
Set Variable: "text" = output
End If
Now we start checking the text itself. But
there's no point in checking the text if the text in our link is shorter than
what the user has typed in. In that case there's no possible way it could be a
match, so we skip it right away...
If (Length(findit)<=Length(text))
| » Level Advanced |
|
|
Added: : 2000-05-01
Rating: 8.50 Votes: 113
Hits: 14482
|
| » Author |
|
Flashjunkie is a self-professed obsessive addict of life. Due to the highly artistic nature required of an Art Director for an Ad agency, he took up Flash to add some math to his diet
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (96 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|