Chapter 1. A Gentle Introduction for Non-Programmers
I’m going to teach you to talk to Flash.
Not just to program in Flash but to say things to it and to listen to what it has to say in return. This is not a metaphor or simply a rhetorical device. It’s a philosophical approach to programming.
Programming languages are used to send information to and receive information from computers. They are collections of vocabulary and grammar used to communicate, just like human languages. Using a programming language, we tell a computer what to do or ask it for information. It listens, tries to perform the requested actions, and gives responses. So while you may think you are reading this book in order to “learn to program,” you are actually learning to communicate with Flash. But, of course, Flash doesn’t speak English, French, German, or Cantonese. Flash’s native language is ActionScript, and you’re going to learn to speak it.
Learning to speak a computer language is sometimes considered synonymous with learning to program. But there is more to programming than learning a language’s syntax. What would it be like if Flash could speak English—if we didn’t need to learn ActionScript in order to communicate with it?
What would happen if we were to say, “Flash, make a ball bounce around the screen?”
Flash couldn’t fulfill our request because it doesn’t understand the word “ball.” Okay, okay, that’s just a matter of semantics. What Flash expects us to describe is the objects in the world it knows: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access