ccNewWindow updated with flags