var max:int = (split ? height : width) - SIZE;

これの(split ? height : width)はどういう判定をしてるのでしょうか?