var compareBranch:String = "index/nav/home/whatever/else";

if (compareBranch.indexOf(event.validBranch) > -1)


On Sep 23, 2009, at 5:56 AM, Kenneth Kawamoto wrote:

Or you could just use indexOf().

Kenneth Kawamoto
http://www.materiaprima.co.uk/

strk wrote:
On Wed, Sep 23, 2009 at 12:40:55PM +0100, thomas horner wrote:
what i need to know if how to say is ; if (event.validBranch ==
"index/nav/his" + "anything else that might follow"){
Compare a substring of event.validBranch, from start to length
of "index/nav/his".
--strk; Free GIS & Flash consultant/developer () ASCII Ribbon Campaign
http://foo.keybit.net/~strk/services.html  /\  Keep it simple!
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to