Creating Functions Example
The following files will be used for this tutorial:
TV Changer - Work File (F8 AS2 ZIP)
TV Changer - Final File (F8 AS2 ZIP)
TV Changer - Final File (F8 AS3 ZIP)
Students will further explore AS3 event handling, functions, and controlling movie clips. In this lesson we will review event listeners by creating a combined click handler for the remote functions. Functions will be used to control the TV movie clip; Turning the TV on/off, changing the channel, updating the channel display, and to drag the remote movie clip. Students will see how functions can be called and how functions can return variables such as the cable display box within this demonstration. Conditionals will be utilized to make sure the TV movie clip does not react to while it is off.