BTW I'm using AS 2.
--- Steven Loe <[EMAIL PROTECTED]> wrote:
> Subject: [Flashcoders] Beginning of String matching algorithm?
>
> I have a plan, but I suspect that it not a great approach:
>
> I have an alpha sorted xml file containing hundreds of titles. I'd
Sorry, rattled that last one off a bit fast and made a couple of mistakes.
Anyway, an ArrayCollection has a property called "filterFunction" which
you can add a callback to like so in Flex:
(In Flash you can use the Array.filter property - you don't get the
ArrayCollection)
//load your XML
if you are in AS3 / Flex, look at the filters for ArrayCollection / XML.
Glen
Steven Loe wrote:
I have a plan, but I suspect that it not a great approach:
I have an alpha sorted xml file containing hundreds of titles. I'd like to
create an
array of items whose beginning contains my search str
I have a plan, but I suspect that it not a great approach:
I have an alpha sorted xml file containing hundreds of titles. I'd like to
create an
array of items whose beginning contains my search string.
So if the search string is "Ba" and this is my list, I'd want the 3rd and 4th
items
only:
1
4 matches
Mail list logo