Convert string to lower case then call the lastIndexOf method
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var example:String = "Cool. This is a cool as both cool (lowercase) and Cool.";
var search:String = "cool";
trace( example.toLowerCase( ).lastIndexOf( search ) );
}
}
}