flash scripts explained