alternative for as3.c