Actionscript classes properties eventhandler methods datatypes control structures
Download
1 / 13

ActionScript: Classes, Properties, EventHandler Methods, Datatypes & Control Structures - PowerPoint PPT Presentation


  • 140 Views
  • Uploaded on

ActionScript: Classes, Properties, EventHandler Methods, Datatypes & Control Structures. MMP 220 Multimedia Programming. This material was prepared for students in MMP220 Multimedia Programming as as part of a curriculum redesign project funded by

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'ActionScript: Classes, Properties, EventHandler Methods, Datatypes & Control Structures' - lane


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Actionscript classes properties eventhandler methods datatypes control structures l.jpg

ActionScript: Classes, Properties, EventHandler Methods, Datatypes & Control Structures

MMP 220

Multimedia Programming

This material was prepared for students in MMP220 Multimedia Programming as as part of a curriculum redesign project funded by

National Science Foundation grant #0511209 Co PI’s Christopher Stein and Jody Culkin

BMCC CUNY http://teachingmultimedia.net




Concepts we learned in alice and will be using in actionscript l.jpg
Concepts we learned in Alice and will be using in ActionScript:

 Classes

 Properties

 Event handler methods

 Control Structures

 Datatypes


Classes l.jpg
Classes ActionScript:

  • A class is a blueprint for an object. When you create an object of a particular class, you are creating an instance of that class.

    Example in ActionScript: MovieClip class


Properties l.jpg
Properties ActionScript:

  • Properties are attributes of an object. Each object has specific properties that have to do with the nature of the class of which it is an instance.

    Properties of the MovieClip class include _alpha (opacity), _width, _x (horizontal position), _y (vertical position).


Event handler methods l.jpg
Event Handler Methods: ActionScript:

  • Event Handler Methods are specially named methods that can be used with certain objects when the corresponding event occurs.

    example:

    circle_mc.onRelease function():Void{

    circle_mc._x += 10;

    }


Control structures l.jpg
Control Structures ActionScript:

  • control the flow of code execution. If statements, while, and for loops are examples in ActionScript.

    example:

    if(circle_mc._alpha > 0){

    circle_mc._ alpha -= 2;

    }


Datatypes l.jpg
Datatypes ActionScript:

  • datatypes refer to what type of values various types of data might hold. In ActionScript, there are primitive datatypes and reference datatypes.

  • Primitive datatypes include number, string, boolean. Reference datatypes include all objects, such as MovieClips.


Alice actionscript l.jpg
Alice/ActionScript ActionScript:


Assignment l.jpg
Assignment ActionScript:

  • Read Chapters 2 and 3 of the Flash ActionScript Bible

  • Make a movie in Flash where you click something and something happens- using ActionScript. You can change properties, such as _x and _y, change size and opacity.