|    | |
|  | |
|  | |
|  | |
动作脚本中的命令称作函数。函数是一种一次编写后可在文档中反复使用以执行某项任务的脚本。您将编写一个具有以下功能的函数:当用户松开鼠标按钮后使 screen_mc 影片剪辑出现 (visible = true)。
//function to show animation。onRelease。= function(){
您刚才完成的代码行应如下所示:
this.onButton_btn.onRelease = function(){
    您已经知道了如何在“插入目标路径”对话框中选择对象。现在,请将实例名称直接输入“脚本”窗格。
screen_mc._visible = true;
}; 来指定语句的结束。
    函数应如以下所示:
//function to show animation
this.onButton_btn.onRelease = function(){
  screen_mc._visible = true;
};
  |  | |
|  | |
|  | |
|    | |