Posts

Showing posts from January, 2010

Language Basics - Part 2

Fundamental Data Types String : for storing text Numeric : ActionScript 3.0 provides three specific data types for numeric data: Number : any numeric value, including values with or without a fraction int : an integer (a whole number without a fraction) uint : an "unsigned" integer, meaning a whole number that can't be negative Boolean : a true-or-false value, such as whether a switch is on or whether two values are equal. Class In ActionScript object-oriented programming, a class contains three types of characteristics: Properties - encloses data within a class Methods - encloses action that can be performed by the class intanses. Events - helps the class intanses to listen and respond to certain user actions or happenings

Language Basics - Part 1

This blog will help you getting started with ActionScript programming. Below are the Actionscript programming fundamentals: Statement In ActionScript, each statement is written with a semicolon at the end. Variable Consists of following parts: The variable's name The type of data that can be stored in the variable The actual value stored in the computer's memory var variable:Number = 17; Constant Is a kind of variable which can only be assigned a value one time in the course of an ActionScript application. const TAX_RATE:Number = 0.12; Once a constant's value is assigned, it is the same throughout the ActionScript application.