Flash: check callbacks with regexp