On Wed, Sep 23, 2009 at 05:36:20PM -0700, Steven Sacks wrote:
> var compareBranch:String = "index/nav/home/whatever/else";
> 
> if (compareBranch.indexOf(event.validBranch) > -1)

Would fail if the substring is found farther than the beginning.
Should be checked for being == 0 eventually.

--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

Reply via email to