You can't really code an application in actionscript.