flash basics. needs some tweaking