The toLowerCase() and toUpperCase() methods are particularly useful for comparing strings in a case-insensitive manner. : case « String « Flash / Flex / ActionScript
The toLowerCase() and toUpperCase() methods are particularly useful for comparing strings in a case-insensitive manner.
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var sTitleOne:String = new String("ActionScript Bible");
var sTitleTwo:String = new String("ActionScript bible");
trace(sTitleOne.valueOf() == sTitleTwo.valueOf());
trace(sTitleOne.toUpperCase() == sTitleTwo.toUpperCase());
}
}
}