Imagine you are going to build an airplane, entirely from scratch. Think about the
process you would follow. You very likely wouldn’t just head to a metal shop and
start welding. You’d have to draw up a blueprint for the airplane first. In fact, given
that you are building the airplane from scratch, you’d have to draw up not just one,
but many blueprints—one for each of the airplane’s many parts (the wheels, the
wings, the seats, the brakes, and so on). Each blueprint would describe a specific
part conceptually and correspond to an actual part in the physical incarnation of the
airplane. To build the airplane, you would manufacture each of the parts individually,
and then assemble them according to a master blueprint. The interoperation of
the airplane’s assembled parts would produce the airplane’s behavior.
If that all sounds logical to you, you’ve got what it takes to become an ActionScript
programmer. Just as an airplane flying through the sky is a group of interoperating
parts based on a set of blueprints, a running ActionScript program is a group of interoperating
objects, based on a set of classes. ActionScript objects represent both the
tangible things and the intangible concepts in a program. For example, an object
might represent a number in a calculation, a clickable button in a user interface, a
point in time on a calendar, or a blur effect on an image. Objects are incarnations, or
instances, of classes. Classes are the blueprints upon which objects are based
จินตนาการคุณจะสร้างเครื่องบิน ทั้งหมด จากรอยขีดข่วน คิดเกี่ยวกับกระบวนการที่คุณจะปฏิบัติตาม คุณมากที่ไม่ไปร้านโลหะเริ่มเชื่อม คุณจะต้องวาดพิมพ์เขียวสำหรับเครื่องบินก่อน ในความเป็นจริง , ให้ที่คุณจะสร้างเครื่องบินจากรอยขีดข่วน , คุณจะต้องวาดขึ้น ไม่ใช่แค่หนึ่งแต่หลายแบบแต่ละอันสำหรับหลายส่วนของเครื่องบิน ( ล้อ ,ปีก , ที่นั่ง , เบรค และอื่นๆ ) แต่ละแบบจะอธิบายเฉพาะส่วนแนวคิดและสอดคล้องกับส่วนชาติทางกายของที่แท้จริงเครื่องบิน การสร้างเครื่องบิน คุณจะผลิตของแต่ละส่วนแต่ละแล้วประกอบตามต้นแบบพิมพ์เขียว การ interoperation ของประกอบชิ้นส่วนของเครื่องบิน จะสร้างพฤติกรรมของเครื่องบินถ้าที่เสียงตรรกะคุณ คุณมีสิ่งที่จะกลายเป็น ActionScriptโปรแกรมเมอร์ เหมือนเครื่องบินที่บินผ่านท้องฟ้าคือกลุ่มของ interoperatingส่วนที่ขึ้นอยู่กับชุดของพิมพ์เขียว , วิ่งด้วยโปรแกรมคือกลุ่มของ interoperatingวัตถุ , ตามชุดของชั้นเรียน ด้วยวัตถุที่เป็นตัวแทนของทั้งสิ่งที่จับต้องได้และจับต้องไม่ได้ แนวคิดในโปรแกรม ตัวอย่างเช่น วัตถุอาจเป็นตัวแทนของตัวเลขในการคำนวณ , ปุ่มคลิกในอินเตอร์เฟซผู้ใช้ ,จุดในเวลาในปฏิทิน หรือเบลอผลต่อภาพ วัตถุที่เป็นสาขา หรืออินสแตนซ์ของคลาส ชั้นพิมพ์เขียวที่วัตถุโดย
การแปล กรุณารอสักครู่..
