Flash game framework