> If I had a string: > > Leadership > > And I was comparing a word: > > Leader > > How could I have the comparison show it as true since the string Leader is in > Leadership? > > Does this even make sense?? So if I was comparing Swim and Leadership it > would be false but Leader and Leadership would be > true... kind of like if I did a SQL statement such as: > > .....fieldName LIKE "%Leader%"
AS, like JavaScript, has a built-in library of string functions. Most of them have the same names and work the same as they do in JavaScript. The indexOf function lets you search for the existence of a substring. http://www.foundation-flash.com/tutorials/stringfunctions2/ I'm not sure why everyone else is recommending the use of regular expressions, which seem massive overkill for what you're trying to do. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

