func doEvent(data) fvar(i) for(i = 1; i <= _event_count_; i++) event("onEvent" + i, data) end end