[Flashcoders] Beginning of String matching algorithm?

2008-01-09 Thread Steven Loe
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

Re: [Flashcoders] Beginning of String matching algorithm?

2008-01-08 Thread Glen Pike
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

Re: [Flashcoders] Beginning of String matching algorithm?

2008-01-08 Thread Glen Pike
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

[Flashcoders] Beginning of String matching algorithm?

2008-01-08 Thread Steven Loe
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