Lab1 AS3 Errors and Splash Page JJ2025

Lab 1 Overview

  • Course: IMD20903 Interactive Multimedia Authoring

  • Instructor: Madam Fadzillah

  • Location: Room 9-11

Objectives

  • By the end of the session, students will be able to:

    • Identify and describe ActionScript 3.0 (AS3)

    • Understand the Adobe Animate interface

    • Identify and rectify AS3 errors

    • Create an animated splash page

    • Create interactive buttons

ActionScript Overview

  • ActionScript 3.0 (AS3):

    • Introduced by Adobe in 2006.

    • Internal programming language for Adobe Animate.

    • Utilized for creating interactive web animations and games.

    • Allows control over animation elements and their behaviors.

    • Instructions can add and manipulate objects in the presentation.

Computer Programs Basics

  • Components of Computer Programs:

    • Series of instructions for the computer to execute.

    • Each instruction manipulates some data.

    • Individual instructions are referred to as statements.

Execution Order

  • ActionScript Execution:

    • Executes in a top-to-bottom, left-to-right order.

    • Subroutines can interrupt execution temporarily to run before resuming the original script.

Types of Errors

  • Common errors encountered during development:

    • Compile-time Errors

    • Run-time Errors

    • Synchronous Errors

    • Logic Errors

Compile-time Errors

  • Detected during code compilation before execution.

  • Typically syntax errors or type mismatches:

    • Examples include missing braces.

  • Displayed in Adobe Animate's Compiler Errors panel.

Run-time Errors

  • Occur during execution after a successful compile.

  • Indicate issues with the code during runtime in Adobe AIR Player:

    • Syntactically correct but still flawed.

    • Errors shown in the Output panel when "Test Movie" is clicked.

Synchronous Errors

  • Errors triggered at the moment a function is called:

    • Example: Invalid argument during a method call leads to exceptions.

Logic Errors

  • Indicate discrepancies in intended and actual outcomes:

    • Code may compile and run, but results are incorrect.

    • Requires human intervention to identify and fix.

    • Example of a logic error with price calculation shown.

Splash Page

  • Definition: The introductory page of an application; akin to a book cover.

  • Should be visually appealing, potentially with animations to attract users.

Buttons

  • Button Phases: Must include 3 phases:

    • Up phase

    • Over phase

    • Down phase

  • Sound effects enhance user experience.