SlideShare a Scribd company logo
1 of 37
Presented By
          Angelin
Angelin
   Object-Oriented Programming Language
              ◦ Encapsulation
              ◦ Abstraction
              ◦ Inheritance
              ◦ Polymorphism
             ECMA compliant & procedural language
             ActionScript code is defined in files with the .as extension or embedded
              within MXML files using one of the following methods:
              ◦ Embed ActionScript code in mxml files using the tag <mx:Script>
              ◦ Include external ActionScript files into mxml, for example : <mx:Script
                 source=”calculateTax.as”>
              ◦ Import ActionScript classes
Angelin
   ActionScript variables are strongly typed.
             Syntax: var varName:VarType = new VarType();
             ActionScript variable definitions:
              ◦    var object:Object = new Object();
              ◦    var array:Array = new Array();
              ◦    var count:int = 1; // short-hand int definition
              ◦    var name:String = "Donnie Brasco"; // short-hand string definition
              ◦    var names:Array = { "Alice", "Bob", "Carl" }; // short-hand array definition
             ActionScript does support type-less variables, but it is generally not
              encouraged.
              ◦ var var1 = null; // un-typed variable
              ◦ var var2:* = null; // any-typed variable
             ActionScript also supports using "*" (wildcard) as a variables.
              ◦ var varName:*;
              The "*" wildcard type means any object type can be assigned to the variable.
Angelin
   int - Represents a 32-bit signed integer.
             Number - Represents an IEEE-754 double-precision floating-point number.
             Boolean - can have one of two values, either true or false, used for logical
              operations.
             String - Represents a string of characters.
             Date – Represents date and time information.

             Array – To access and manipulate arrays.
             XML - The XML class contains methods and properties for working with XML objects.
             XMLList - The XMLList class contains methods for working with one or more XML
              elements.

             uint – A class that provides methods for working with a data type representing a 32-
              bit unsigned integer.
             Error - Contains information about an error that occurred in a script.
             RegExp - To work with regular expressions, which are patterns that can be used to
              perform searches in strings and to replace text in strings.
Angelin
   ActionScript properties can be declared by using five different access
              modifiers:
              ◦ internal: Makes the property visible to references inside the same package
                (the default modifier)
              ◦ private: Makes the property visible to references only in the same class
              ◦ protected: Makes the property visible to references in the same class and
                derived classes
              ◦ public: Makes the property visible to references everywhere
              ◦ static: Makes the property accessible via the parent class instead of
                instances of the class
Angelin
   An ActionScript class must define a public constructor method, which
              initializes an instance of the class.

             A constructor has the following characteristics:
              ◦ No return type.
              ◦ Should be declared public.
              ◦ Might have optional arguments.
              ◦ Cannot have any required arguments if you use it as an MXML tag.
              ◦ Calls the super() method to invoke the superclass‟s constructor.

                    The super() method is called from within the constructor which invokes
              the superclass‟s constructor to initialize the items inherited from the
              superclass. The super() method should be the first statement in the
              constructor;
Angelin
   Function Definition syntax:
                 access_modifier function functionName(argName:ArgType,
                    optionalArgName:optionalArgType=defaultValue):ReturnType {
                               Statement1;
                               ..
                               StatementN;
                    }
             Invoking a function
                    var returnValue:ReturnType = functionName(argName);
             Examples:
                   public function doSomething( arg:Object ):String
                   {
                      return "something";
                   }
                  //function with an optional argument
                  public function anotherFunction( arg:Object, opt:String=null ):void
                  {  // do something
                  }
Angelin
   Events
              Actions that occur in response to user-initiated and system-initiated actions

             Event Handling
              The technique for specifying certain actions that should be performed in
                response to particular events.

             Example
                function eventHandler(event:MouseEvent):void
                {
                    // Actions performed in response to the event go here
                }



                myButton.addEventListener(MouseEvent.CLICK, eventHandler);
Angelin
   ActionScript class definition:
                package packageName
                {
                   import another.packageName.*;

                    public class ClassName extends SuperClassName implements
                     InterfaceName
                    {
                       public ClassName()
                       {
                            // constructor
                        }
                    }
                }
Angelin
   ActionScript interface definition:
                package packageName
                {
                   public interface InterfaceName extends AnotherInterface
                   {
                        // public not necessary (and not allowed)
                        function methodName():void;
                    }
                }

             ActionScript Interfaces do not allow property definitions.
Angelin
   Runtime Type Checking is done using the „is‟ operator.
             Casting of objects is done using the „as‟ operator.
                The ActionScript „as‟ operator will cast the object and assign it to
                the variable, but only if object is of the proper type (otherwise it
                assigns null).
                ActionScript usage of the „as‟ operator:
                     // use "as" to safely assign object as a Person or null
                     var person:Person = object as Person;
             ActionScript runtime type checking and casting example:
                // cast Object to Person
                if( object is Person )
                 {
                       var person:Person = Person ( object );
                 }
Angelin
   ActionScript "for" and "for each" loops:

                // “for” loop to loop over an array
                for( var i:int = 0; i < array.length; i++ )
                {
                    // use array[i]
                }

                // "for each" loop to loop over a collection
                var item:Object;
                for each( item in collection )
                {
                    // use item
                }
Angelin
   ActionScript throws exceptions and supports the try/catch/finally structure
              for handling them.
             ActionScript exception handling using try/catch/finally:
                  // functions do not declare that they throw exception
                  public function doSomething():void
                  {
                      try {
                          // try something
                      }
                      catch( error:Error ) {
                          // handle error by rethrowing
                          throw error;
                      }
                      finally {
                          // executed whether or not there was an exception
                      }
                  }
Angelin
   Initial comment
             Package definition
             Imports
             Metadata
              ◦ Event
              ◦ Style
              ◦ Effect
             Class definition
              ◦ Static variables
              ◦ Instance variables
                  public constants
                  Internal
                  protected
                  private constants
              ◦ Constructor
              ◦ Getter/setter methods for variables
              ◦ Methods
Angelin
Java class definition            ActionScript class definition
          package packageName;             package packageName
                                           {
          import another.packageName.*;      import another.packageName.*;

          public class ClassName extends     public class ClassName extends
          SuperClassName implements        SuperClassName implements
          InterfaceName                    InterfaceName
          {                                  {
            public ClassName()                 public ClassName()
            {                                  {
              // constructor                     // constructor
            }                                  }
          }                                  }
                                           }
Angelin
Java interface definition              ActionScript interface definition
          package packageName;                   package packageName
                                                 {
          public interface InterfaceName extends   public interface InterfaceName extends
          AnotherInterface                       AnotherInterface
          {                                        {
            // public is optional (and               // public not necessary (and not
          extraneous)                            allowed)
              public void methodName();                  function methodName():void;
          }                                          }
                                                 }

                                                 Unlike Java, ActionScript Interfaces do not
                                                 allow property definitions.
Angelin
Java variable definitions              ActionScript variable definitions
            Object object = new Object();          var object:Object = new Object();

            int count = 1;                         var count:int = 1;

            String name = “Don Bradman";           var name:String = "Don Bradman";

            String[] names = { "Alice", "Bob",     var names:Array = { "Alice", "Bob", "Carl" };
          "Carl" };                              // ActionScript arrays are untyped

                                                 ActionScript does support type-less
                                                 variables, but it is generally not encouraged.
                                                      var var1 = null; // un-typed variable
                                                      var var2:* = null; // any-typed variable
Angelin
Java method definition               ActionScript method definition
           public String doSomething( Object   public function doSomething( arg:Object
          arg )                                ):String
            {                                     {
              return "something";                   return "something";
            }                                     }

                                               ActionScript also allows optional function
                                               arguments.

                                               ActionScript function definition with optional
                                               function argument:
                                               public function anotherFunction( arg:Object,
                                               opt:String=null ):void
                                                 {
                                                    // do something
                                                }
Angelin
Java runtime type checking and        ActionScript runtime type checking and
          casting                               casting
            // cast Object to Person              // cast Object to Person
            if( object instanceof Person )        if( object is Person )
            {                                     {
               Person person = (Person)               var person:Person = Person( object );
          object;                                 }
            }                                   For runtime type checking ActionScript uses
                                                the „is‟ operator.
          For runtime type checking Java uses
          the „instanceof ‟operator             ActionScript also offers another method,
                                                similar to casting, using the „as‟ operator.
                                                The ActionScript „as‟ operator will cast the
                                                object and assign it the variable, but only if
                                                object is of the proper type (otherwise it
                                                assigns null).

                                                  // use "as" to safely assign object as a
                                                Person or null
                                                  var person:Person = object as Person;
Angelin
Java "for" and "for each" loops           ActionScript "for" and "for each" loops
          // loop over an array                     // loop over an array
           for( int i = 0; i < array.length; i++)    for( var i:int = 0; i < array.length; i++)
            {                                        {
                // use array[i]                          // use array[i]
            }                                        }

            // loop over a collection                // loop over a collection
            for( Object item : myCollection)         for each(var item:Object in myCollection)
            {                                        {
                // use item                              // use item
            }                                        }
Angelin
Java exception handling                 ActionScript exception handling
           // method declared to throw an          // functions do not declare that they
          exception                               throw exception
            public void doSomething() throws       public function doSomething():void
          Exception                                {
            {                                        try
              try                                    {
              {                                            // try something
                   // try something                    }
               }                                       catch( error:Error )
               catch( Exception ex )                   {
               {                                           // handle error by rethrowing
                // handle exception by                     throw error;
          rethrowing                                   }
                   throw ex;                           finally
               }                                       {
               finally                                 // reached whether or not there is
               {                                  an exception
                // reached whether or not there        }
          is an exception                          }
Angelin




               }
           }
Java Accessor Functions (Get/Set)        ActionScript Accessor Functions (Get/Set)
          public class Person                      public class Person
          {                                        {
            private String name = null;              private var _name:String;

              public String getName()               public function get name():String
              {                                     {
                return this.name;                     return _name;
              }                                     }

              public void setName( String name )      public function set name( value:String
              {                                    ):void
                this.name = name;                     {
              }                                         _name = value;
          }                                           }
                                                   }
Angelin
Java Singleton Class                         ActionScript Singleton Class
          package examples;                            package examples
                                                       {
          public class Singleton                         public class Singleton
          {                                              {
            private static final Singleton _instance       static private const _instance:Singleton = new
          = new Singleton();                           Singleton();

              private Singleton()                              // private constructors not supported
              {}                                           public Singleton()
                                                           {
              public Singleton getInstance()                 if( _instance )
              {                                              {
                return _instance;                               throw new Error( "Singleton instance already
              }                                        exists." );
          }                                                  }
                                                           }

                                                               static public function get instance():Singleton
                                                               {
                                                                 return _instance;
                                                               }
                                                           }
Angelin




                                                       }
Concept/Language
                                             Java 5.0                  ActionScript 3.0
          Construct
          Class library packaging   .jar                        .swc
                                    class Employee extends   class Employee extends
          Inheritance
                                    Person{…}                Person{…}
                                                             var firstName:String=”John”;
                                   String firstName=”John”;
                                                             var shipDate:Date=new
          Variable declaration and Date shipDate=new Date();
                                                             Date();
          initialization           int i;int a, b=10;
                                                             var i:int;var a:int, b:int=10;
                                   double salary;
                                                             var salary:Number;
                                                             It‟s an equivalent to the wild
                                                             card type notation *. If you
          Undeclared variables     Not Applicable            declare a variable but do not
                                                             specify its type, the * type will
                                                             apply.
                                                             If you write one statement per
          Terminating statements
                                   Mandatory                 line you can omit semicolon
          with semicolons
                                                             at the end of that statement.
Angelin
Concept/Language
                                              Java 5.0                    ActionScript 3.0
          Construct
                                                                   No block scope.
                                   block: declared within curly    local: declared within a
                                   braces,                         function
                                   local: declared within a method member: declared at the
          Variable scopes          or a block                      class level
                                   member: declared at the class   global: If a variable is
                                   level                           declared outside of any
                                   global: no global variables     function or class definition,
                                                                   it has global scope.
                                                                   Immutable; stores
                                   Immutable; stores sequences of
          Strings                                                  sequences of two-byte
                                   two-byte Unicode characters
                                                                   Unicode characters
                                                                   for strict equality use ===
          Strict equality operator Not Applicable                  for strict non-equality use
                                                                   !==
                                   The keyword final               The keyword const
          Constant qualifier
                                   final int STATE=”NY”;           const STATE:int =”NY”;
Angelin
Concept/Language
                                    Java 5.0                     ActionScript 3.0
          Construct
          The top class in the
                               Object             Object
          inheritance tree
                                                 Dynamic (checked at run-time) and static
                              Static (checked at
          Type checking                          (it‟s so called „strict mode‟, which is default
                              compile time)
                                                 in Flex Builder)
                                                 is – checks data type.
          Type check                             i.e. if (myVar is String){…}
                              instanceof
          operator                               The „is‟ operator is a replacement of older
                                                 instanceof
                                                 Similar to „is‟ operator, but does not return
                                                 Boolean, instead returns the result of
                                                 expression
          The „as‟ operator   Not Applicable
                                                 var orderId:String=”123″;
                                                 var orderIdN:Number=orderId as Number;
                                                 trace(orderIdN);//prints 123
                              Person p=(Person) var p:Person= Person(myObject);
          Casting
Angelin




                              myObject;          orvar p:Person= myObject as Person;
Concept/Language
                                   Java 5.0                   ActionScript 3.0
          Construct
                                                 All primitives in ActionScript are objects.
                              byte, int, long,
                                                 Boolean, int, uint, Number, String.
                              float,
          Primitives                             The following lines are equivalent:
                              double,short,
                                                 var age:int = 25;
                              boolean, char
                                                 var age:int = new int(25);
                                                 Array, Date, Error, Function, RegExp, XML,
          Complex types       Not Applicable
                                                 and XMLList
                                                 var quarterResults:Array
                              int
                                                 =new Array();
                              quarterResults[];
                                                 orvar quarterResults:Array=[];
                              quarterResults =
          Array declaration                      var quarterResults:Array=
                              new int[4];
          and instantiation                      [25, 33, 56, 84];
                              int
                                                 AS3 also has associative arrays that uses
                              quarterResults[]={
                                                 named elements instead of numeric indexes
                              25,33,56,84};
                                                 (similar to Hashtable).
                                                 var myObject:*;
          Un-typed variable   Not Applicable
                                                 var myObject;
Angelin
Concept
          /Language              Java 5.0                      ActionScript 3.0
          Construct
                                              package com.xyz{class myClass{…}}
                          package com.xyz;
          packages                            ActionScript packages can include not only
                          class myClass {…}
                                              classes, but separate functions as well
                        public, private,      public, private, protected
                        protected             if none is specified, classes have internal
          Class access
                        if none is specified, access level (similar to package access level in
          levels
                        classes have package Java)
                        access level
                                              Similar to XML namespaces.
          Custom access                       namespace abc;
          levels:       Not Applicable        abc function myCalc(){}
          namespaces                          or
                                              abc::myCalc(){}use namespace abc ;
Angelin
Concept
          /Language           Java 5.0                       ActionScript 3.0
          Construct
                      Hashtable,             Associative Arrays allows referencing its
                      MapHashtable friends = elements by names instead of indexes.
                      new Hashtable();       var friends:Array=new Array();
                      friends.put(“good”,    friends["good"]=”Mary”;
                      “Mary”);               friends["best"]=”Bill”;
                      friends.put(“best”,    friends["bad"]=”Masha”;
          Unordered   “Bill”);               var bestFriend:String= friends["best"];
          key-value   friends.put(“bad”,     friends.best=”Alex”;
          pairs       “Masha”);              Another syntax:
                      String bestFriend=
                                             var car:Object = {make:”Toyota”,
                      friends.get(“best”);//
                                             model:”Camry”};
                      bestFriend is Bill
                                             trace (car["make"], car.model);

                                               // Output: Toyota Camry
Angelin
Concept
          /Language           Java 5.0                      ActionScript 3.0
          Construct
          Console                             // in debug mode only
                      System.out.println();
          output                              trace();
                                              import com.abc.*;
                      import com.abc.*;
                                              import com.abc.MyClass;
          imports     import
                                              packages must be imported even if the class
                      com.abc.MyClass;
                                              names are fully qualified in the code.
                                              Compiler moves all variable declarations to
                                              the top of the function. So, you can use a
          Hoisting    Not Applicable
                                              variable name even before it has been
                                              explicitly declared in the code.
Angelin
Concept/Language
                                      Java 5.0                       ActionScript 3.0
          Construct
                                 Customer cmr =       var cmr:Customer = new Customer();
                                 new Customer();      var cls:Class =
          Instantiation          Class cls =          flash.util.getClassByName(“Customer”);
          objects from           Class.forName(“C     var myObj:Object = new cls();
          classes                ustomer”);Object
                                 myObj=
                                 cls.newInstance();
                                 private class        There is no private classes in AS3.
          Private classes
                                 myClass{…}
                                 Supported.           Not available.
                                 Typical use:          Implementation of private constructors is
                                 singleton classes.   postponed as they are not the part of the
                                                      ECMAScript standard yet.
          Private constructors                        To create a Singleton, use public static
                                                      getInstance(), which sets a private flag
                                                      instanceExists after the first instantiation.
Angelin




                                                      Check this flag in the public constructor, and
                                                      if instanceExists==true, throw an error.
Concept/Language
                                       Java 5.0                     ActionScript 3.0
          Construct
                              A file can have multiple    A file can have multiple class
                              class declarations, but     declarations, but only one of them
          Class and file      only one of them can be     can be placed inside the package
          names               public, and the file must   declaration, and the file must have
                              have the same name as       the same name as this class.
                              this class.
                                                          dynamic class Person {var
                                                          name:String;}
          Dynamic classes                                 //Dynamically add a variable and a
                                                          function
          (define an object
                                                          Person p= new Person();
          that can be altered                             p.name=”Joe”;
          at runtime by       Not Applicable              p.age=25;
          adding or changing                              p.printMe = function () {
          properties and
                                                          trace (p.name, p.age);
          methods).
                                                          }
Angelin




                                                          p.printMe(); // Joe 25
Concept/Language
                                      Java 5.0                      ActionScript 3.0
          Construct
                               Not Applicable.          myButton.addEventListener(“click”,
                               Closure is a proposed    myMethod);
                               addition to Java 8.      A closure is an object that represents a
                                                        snapshot of a function with its lexical
          Function closures
                                                        context (variable‟s values, objects in the
                                                        scope). A function closure can be
                                                        passed as an argument and executed
                                                        without being a part of any object
          Abstract classes     Supported                Not Applicable
                               class A implements B     class A implements B {…}
                               {…}                      Interfaces can contain only function
          Interfaces           Interfaces can contain   declarations.
                               method declarations
                               and final variables.
                               Classes and interfaces   Classes, interfaces, variables, functions,
          What can be placed
                                                        namespaces, and executable
          in a package
Angelin




                                                        statements.
Concept/Language
                                     Java 5.0                    ActionScript 3.0
          Construct
                                                     Supported. You must use the override
          Function overriding Supported
                                                     qualifier
          Function
                              Supported              Not supported.
          overloading
                                                     Keywords: try, catch, throw, finally
                                                     A method does not have to declare
                             Keywords: try, catch,
                                                     exceptions.
                             throw, finally, throws.
                                                     Can throw not only Error objects, but
          Exception handling Uncaught exceptions
                                                     also numbers. For example,
                             are propagated to the
                                                     throw 25.3;
                             calling method.
                                                     Flash Player terminates the script in
                                                     case of any uncaught exception.
          Regular
                             Supported               Supported
          expressions
Angelin
   Almost anything that you can do in a custom ActionScript
              custom component, you can also do in a custom MXML
              component. However, for simple components, such as
              components that modify the behaviour of an existing
              component or add a basic feature to an existing component,
              it is simpler and faster to create them in MXML.

             When your new component is a composite component that
              contains other components, and you can express the
              positions and sizes of those other components using one of
              the Flex layout containers, you should use MXML to define
              your component.
Angelin
   To modify the behaviour of the component, such as the way a
              container lays out its children, use ActionScript.

             To create a visual component by creating a subclass from
              UIComponent, use ActionScript.
             To create a non-visual component, such as a formatter,
              validator, or effect, use ActionScript.

             To add logging support to your control, use ActionScript.
Angelin
Angelin

More Related Content

What's hot

Chapter 7 : MAKING MULTIMEDIA
Chapter 7 : MAKING MULTIMEDIAChapter 7 : MAKING MULTIMEDIA
Chapter 7 : MAKING MULTIMEDIAazira96
 
Adobe Premiere Pro: An Introduction to the Basics_Mujeeb Riaz
Adobe Premiere Pro: An Introduction to the Basics_Mujeeb RiazAdobe Premiere Pro: An Introduction to the Basics_Mujeeb Riaz
Adobe Premiere Pro: An Introduction to the Basics_Mujeeb RiazMujeeb Riaz
 
Adobe Animate CC.
Adobe Animate CC.Adobe Animate CC.
Adobe Animate CC.Edgar Hdz
 
Chapter 9 animation
Chapter 9 animationChapter 9 animation
Chapter 9 animationshelly3160
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics PrathimaBaliga
 
Animation Techniques
Animation TechniquesAnimation Techniques
Animation TechniquesMedia Studies
 
Chapter 8 : MULTIMEDIA SKILLS
Chapter 8 : MULTIMEDIA SKILLSChapter 8 : MULTIMEDIA SKILLS
Chapter 8 : MULTIMEDIA SKILLSazira96
 
3D Animation Process and Workflow
3D Animation Process and Workflow3D Animation Process and Workflow
3D Animation Process and WorkflowGridway Digital
 
Top 10 photoshop tools that you need to master photoshop
Top 10 photoshop tools that you need to master photoshopTop 10 photoshop tools that you need to master photoshop
Top 10 photoshop tools that you need to master photoshopWitsel Carry
 
Basic Video Editing Training for Beginners
Basic Video Editing Training for BeginnersBasic Video Editing Training for Beginners
Basic Video Editing Training for BeginnersFawad Najam
 
Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1Oleksii Prohonnyi
 
5 graphic design software
5 graphic design software5 graphic design software
5 graphic design softwareWitsel Carry
 
Adobe Animate CC: Introduction to Animation and Interactivity
Adobe Animate CC: Introduction to Animation and InteractivityAdobe Animate CC: Introduction to Animation and Interactivity
Adobe Animate CC: Introduction to Animation and InteractivityJoseph Labrecque
 

What's hot (20)

Chapter 7 : MAKING MULTIMEDIA
Chapter 7 : MAKING MULTIMEDIAChapter 7 : MAKING MULTIMEDIA
Chapter 7 : MAKING MULTIMEDIA
 
Adobe Premiere Pro: An Introduction to the Basics_Mujeeb Riaz
Adobe Premiere Pro: An Introduction to the Basics_Mujeeb RiazAdobe Premiere Pro: An Introduction to the Basics_Mujeeb Riaz
Adobe Premiere Pro: An Introduction to the Basics_Mujeeb Riaz
 
Image formats
Image formatsImage formats
Image formats
 
Computer animation
Computer animationComputer animation
Computer animation
 
Adobe Animate CC.
Adobe Animate CC.Adobe Animate CC.
Adobe Animate CC.
 
Introduction to adobe Photoshop
Introduction to adobe PhotoshopIntroduction to adobe Photoshop
Introduction to adobe Photoshop
 
Chapter 9 animation
Chapter 9 animationChapter 9 animation
Chapter 9 animation
 
Unit 11. Graphics
Unit 11. GraphicsUnit 11. Graphics
Unit 11. Graphics
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Animation Techniques
Animation TechniquesAnimation Techniques
Animation Techniques
 
Chapter 8 : MULTIMEDIA SKILLS
Chapter 8 : MULTIMEDIA SKILLSChapter 8 : MULTIMEDIA SKILLS
Chapter 8 : MULTIMEDIA SKILLS
 
3D Animation Process and Workflow
3D Animation Process and Workflow3D Animation Process and Workflow
3D Animation Process and Workflow
 
Top 10 photoshop tools that you need to master photoshop
Top 10 photoshop tools that you need to master photoshopTop 10 photoshop tools that you need to master photoshop
Top 10 photoshop tools that you need to master photoshop
 
Adobe Photoshop
Adobe PhotoshopAdobe Photoshop
Adobe Photoshop
 
2D & 3D ANIMATION
2D & 3D ANIMATION2D & 3D ANIMATION
2D & 3D ANIMATION
 
Basic Video Editing Training for Beginners
Basic Video Editing Training for BeginnersBasic Video Editing Training for Beginners
Basic Video Editing Training for Beginners
 
Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1
 
5 graphic design software
5 graphic design software5 graphic design software
5 graphic design software
 
Adobe Animate CC: Introduction to Animation and Interactivity
Adobe Animate CC: Introduction to Animation and InteractivityAdobe Animate CC: Introduction to Animation and Interactivity
Adobe Animate CC: Introduction to Animation and Interactivity
 

Viewers also liked

Actionscript 3 - Session 1 Introduction To As 3
Actionscript 3 - Session 1 Introduction To As 3Actionscript 3 - Session 1 Introduction To As 3
Actionscript 3 - Session 1 Introduction To As 3OUM SAOKOSAL
 
Actionscript 3 - Session 3 Action Script And Flash
Actionscript 3 - Session 3 Action Script And FlashActionscript 3 - Session 3 Action Script And Flash
Actionscript 3 - Session 3 Action Script And FlashOUM SAOKOSAL
 
Introducing to AS3.0 programming
Introducing to AS3.0 programmingIntroducing to AS3.0 programming
Introducing to AS3.0 programmingsolielmutya
 
Actionscript 3 - Session 5 The Display Api And The Display List
Actionscript 3 - Session 5 The Display Api And The Display ListActionscript 3 - Session 5 The Display Api And The Display List
Actionscript 3 - Session 5 The Display Api And The Display ListOUM SAOKOSAL
 
Actionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 6 InteractivityActionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 6 InteractivityOUM SAOKOSAL
 
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0Peter Elst
 
Actionscript 3 - Session 4 Core Concept
Actionscript 3 - Session 4 Core ConceptActionscript 3 - Session 4 Core Concept
Actionscript 3 - Session 4 Core ConceptOUM SAOKOSAL
 
Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0Brian Kelly
 
Action script 101
Action script 101Action script 101
Action script 101Brian Kelly
 
How to write a press Release
How to write a press Release How to write a press Release
How to write a press Release Dr A.K. Sharma
 
How To Create A Video With Titles In Movie Maker And Then Convert To Flash M...
How To Create A Video With Titles In Movie Maker And Then  Convert To Flash M...How To Create A Video With Titles In Movie Maker And Then  Convert To Flash M...
How To Create A Video With Titles In Movie Maker And Then Convert To Flash M...Sutinder Mann
 
Chapter 9 Interface
Chapter 9 InterfaceChapter 9 Interface
Chapter 9 InterfaceOUM SAOKOSAL
 
An Introduction to Game Programming with Flash: An Introduction to Flash and ...
An Introduction to Game Programming with Flash: An Introduction to Flash and ...An Introduction to Game Programming with Flash: An Introduction to Flash and ...
An Introduction to Game Programming with Flash: An Introduction to Flash and ...Krzysztof Opałka
 
Action Script 3 With Flash Cs3
Action Script 3 With Flash Cs3Action Script 3 With Flash Cs3
Action Script 3 With Flash Cs3ravihamsa
 
Actionscript 3 - Session 7 Other Note
Actionscript 3 - Session 7 Other NoteActionscript 3 - Session 7 Other Note
Actionscript 3 - Session 7 Other NoteOUM SAOKOSAL
 
ActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsSaurabh Narula
 
Action script for designers
Action script for designersAction script for designers
Action script for designersoyunbaga
 

Viewers also liked (20)

Actionscript 3 - Session 1 Introduction To As 3
Actionscript 3 - Session 1 Introduction To As 3Actionscript 3 - Session 1 Introduction To As 3
Actionscript 3 - Session 1 Introduction To As 3
 
Actionscript 3 - Session 3 Action Script And Flash
Actionscript 3 - Session 3 Action Script And FlashActionscript 3 - Session 3 Action Script And Flash
Actionscript 3 - Session 3 Action Script And Flash
 
Introducing to AS3.0 programming
Introducing to AS3.0 programmingIntroducing to AS3.0 programming
Introducing to AS3.0 programming
 
Actionscript 3 - Session 5 The Display Api And The Display List
Actionscript 3 - Session 5 The Display Api And The Display ListActionscript 3 - Session 5 The Display Api And The Display List
Actionscript 3 - Session 5 The Display Api And The Display List
 
Actionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 6 InteractivityActionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 6 Interactivity
 
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
 
Actionscript 3 - Session 4 Core Concept
Actionscript 3 - Session 4 Core ConceptActionscript 3 - Session 4 Core Concept
Actionscript 3 - Session 4 Core Concept
 
Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0
 
Action script 101
Action script 101Action script 101
Action script 101
 
Action script
Action scriptAction script
Action script
 
Komunizm
KomunizmKomunizm
Komunizm
 
How to write a press Release
How to write a press Release How to write a press Release
How to write a press Release
 
How To Create A Video With Titles In Movie Maker And Then Convert To Flash M...
How To Create A Video With Titles In Movie Maker And Then  Convert To Flash M...How To Create A Video With Titles In Movie Maker And Then  Convert To Flash M...
How To Create A Video With Titles In Movie Maker And Then Convert To Flash M...
 
Chapter 9 Interface
Chapter 9 InterfaceChapter 9 Interface
Chapter 9 Interface
 
An Introduction to Game Programming with Flash: An Introduction to Flash and ...
An Introduction to Game Programming with Flash: An Introduction to Flash and ...An Introduction to Game Programming with Flash: An Introduction to Flash and ...
An Introduction to Game Programming with Flash: An Introduction to Flash and ...
 
Action Script 3 With Flash Cs3
Action Script 3 With Flash Cs3Action Script 3 With Flash Cs3
Action Script 3 With Flash Cs3
 
Actionscript 3 - Session 7 Other Note
Actionscript 3 - Session 7 Other NoteActionscript 3 - Session 7 Other Note
Actionscript 3 - Session 7 Other Note
 
ActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsActionScript 3.0 Fundamentals
ActionScript 3.0 Fundamentals
 
Action script for designers
Action script for designersAction script for designers
Action script for designers
 
Adobe flash cs6
Adobe flash cs6Adobe flash cs6
Adobe flash cs6
 

Similar to ActionScript Class and Interface Definitions Explained

Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to JavascriptAmit Tyagi
 
object oriented programming using java, second sem BCA,UoM
object oriented programming using java, second sem BCA,UoMobject oriented programming using java, second sem BCA,UoM
object oriented programming using java, second sem BCA,UoMambikavenkatesh2
 
The JavaScript Programming Primer
The JavaScript  Programming PrimerThe JavaScript  Programming Primer
The JavaScript Programming PrimerMike Wilcox
 
JavaScript(Es5) Interview Questions & Answers
JavaScript(Es5)  Interview Questions & AnswersJavaScript(Es5)  Interview Questions & Answers
JavaScript(Es5) Interview Questions & AnswersRatnala Charan kumar
 
Object oriented programming in java
Object oriented programming in javaObject oriented programming in java
Object oriented programming in javaElizabeth alexander
 
JavaScript (without DOM)
JavaScript (without DOM)JavaScript (without DOM)
JavaScript (without DOM)Piyush Katariya
 
Understanding Object Oriented Javascript - Coffee@DBG June
Understanding Object Oriented Javascript - Coffee@DBG JuneUnderstanding Object Oriented Javascript - Coffee@DBG June
Understanding Object Oriented Javascript - Coffee@DBG JuneDeepu S Nath
 
JavaScript Beyond jQuery
JavaScript Beyond jQueryJavaScript Beyond jQuery
JavaScript Beyond jQueryBobby Bryant
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaCPD INDIA
 

Similar to ActionScript Class and Interface Definitions Explained (20)

Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Enterprise js pratices
Enterprise js praticesEnterprise js pratices
Enterprise js pratices
 
Javascript
JavascriptJavascript
Javascript
 
Exception
ExceptionException
Exception
 
core java
core javacore java
core java
 
object oriented programming using java, second sem BCA,UoM
object oriented programming using java, second sem BCA,UoMobject oriented programming using java, second sem BCA,UoM
object oriented programming using java, second sem BCA,UoM
 
The JavaScript Programming Primer
The JavaScript  Programming PrimerThe JavaScript  Programming Primer
The JavaScript Programming Primer
 
Scala - core features
Scala - core featuresScala - core features
Scala - core features
 
JavaScript(Es5) Interview Questions & Answers
JavaScript(Es5)  Interview Questions & AnswersJavaScript(Es5)  Interview Questions & Answers
JavaScript(Es5) Interview Questions & Answers
 
Object oriented programming in java
Object oriented programming in javaObject oriented programming in java
Object oriented programming in java
 
ClassJS
ClassJSClassJS
ClassJS
 
JavaScript (without DOM)
JavaScript (without DOM)JavaScript (without DOM)
JavaScript (without DOM)
 
Java String
Java String Java String
Java String
 
C# Unit 2 notes
C# Unit 2 notesC# Unit 2 notes
C# Unit 2 notes
 
Java Programming - 04 object oriented in java
Java Programming - 04 object oriented in javaJava Programming - 04 object oriented in java
Java Programming - 04 object oriented in java
 
Core Java
Core JavaCore Java
Core Java
 
Understanding Object Oriented Javascript - Coffee@DBG June
Understanding Object Oriented Javascript - Coffee@DBG JuneUnderstanding Object Oriented Javascript - Coffee@DBG June
Understanding Object Oriented Javascript - Coffee@DBG June
 
JavaScript Beyond jQuery
JavaScript Beyond jQueryJavaScript Beyond jQuery
JavaScript Beyond jQuery
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 
Java Concepts
Java ConceptsJava Concepts
Java Concepts
 

More from Angelin R

Comparison of Java Web Application Frameworks
Comparison of Java Web Application FrameworksComparison of Java Web Application Frameworks
Comparison of Java Web Application FrameworksAngelin R
 
[DOC] Java - Code Analysis using SonarQube
[DOC] Java - Code Analysis using SonarQube[DOC] Java - Code Analysis using SonarQube
[DOC] Java - Code Analysis using SonarQubeAngelin R
 
Java Source Code Analysis using SonarQube
Java Source Code Analysis using SonarQubeJava Source Code Analysis using SonarQube
Java Source Code Analysis using SonarQubeAngelin R
 
The principles of good programming
The principles of good programmingThe principles of good programming
The principles of good programmingAngelin R
 
Exception handling & logging in Java - Best Practices (Updated)
Exception handling & logging in Java - Best Practices (Updated)Exception handling & logging in Java - Best Practices (Updated)
Exception handling & logging in Java - Best Practices (Updated)Angelin R
 
A Slice of Me
A Slice of MeA Slice of Me
A Slice of MeAngelin R
 
Team Leader - 30 Essential Traits
Team Leader - 30 Essential TraitsTeam Leader - 30 Essential Traits
Team Leader - 30 Essential TraitsAngelin R
 
Agile SCRUM Methodology
Agile SCRUM MethodologyAgile SCRUM Methodology
Agile SCRUM MethodologyAngelin R
 
Exception handling and logging best practices
Exception handling and logging best practicesException handling and logging best practices
Exception handling and logging best practicesAngelin R
 
Tamil Christian Worship Songs
Tamil Christian Worship SongsTamil Christian Worship Songs
Tamil Christian Worship SongsAngelin R
 
Flex MXML Programming
Flex MXML ProgrammingFlex MXML Programming
Flex MXML ProgrammingAngelin R
 
Introduction to Adobe Flex
Introduction to Adobe FlexIntroduction to Adobe Flex
Introduction to Adobe FlexAngelin R
 
Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Angelin R
 
Restful Web Services
Restful Web ServicesRestful Web Services
Restful Web ServicesAngelin R
 
Effective Team Work Model
Effective Team Work ModelEffective Team Work Model
Effective Team Work ModelAngelin R
 
Team Building Activities
Team Building ActivitiesTeam Building Activities
Team Building ActivitiesAngelin R
 

More from Angelin R (17)

Comparison of Java Web Application Frameworks
Comparison of Java Web Application FrameworksComparison of Java Web Application Frameworks
Comparison of Java Web Application Frameworks
 
[DOC] Java - Code Analysis using SonarQube
[DOC] Java - Code Analysis using SonarQube[DOC] Java - Code Analysis using SonarQube
[DOC] Java - Code Analysis using SonarQube
 
Java Source Code Analysis using SonarQube
Java Source Code Analysis using SonarQubeJava Source Code Analysis using SonarQube
Java Source Code Analysis using SonarQube
 
The principles of good programming
The principles of good programmingThe principles of good programming
The principles of good programming
 
Exception handling & logging in Java - Best Practices (Updated)
Exception handling & logging in Java - Best Practices (Updated)Exception handling & logging in Java - Best Practices (Updated)
Exception handling & logging in Java - Best Practices (Updated)
 
A Slice of Me
A Slice of MeA Slice of Me
A Slice of Me
 
Team Leader - 30 Essential Traits
Team Leader - 30 Essential TraitsTeam Leader - 30 Essential Traits
Team Leader - 30 Essential Traits
 
Agile SCRUM Methodology
Agile SCRUM MethodologyAgile SCRUM Methodology
Agile SCRUM Methodology
 
Exception handling and logging best practices
Exception handling and logging best practicesException handling and logging best practices
Exception handling and logging best practices
 
Tamil Christian Worship Songs
Tamil Christian Worship SongsTamil Christian Worship Songs
Tamil Christian Worship Songs
 
Flex MXML Programming
Flex MXML ProgrammingFlex MXML Programming
Flex MXML Programming
 
Introduction to Adobe Flex
Introduction to Adobe FlexIntroduction to Adobe Flex
Introduction to Adobe Flex
 
Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)
 
Restful Web Services
Restful Web ServicesRestful Web Services
Restful Web Services
 
Effective Team Work Model
Effective Team Work ModelEffective Team Work Model
Effective Team Work Model
 
Team Building Activities
Team Building ActivitiesTeam Building Activities
Team Building Activities
 
XStream
XStreamXStream
XStream
 

Recently uploaded

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Recently uploaded (20)

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

ActionScript Class and Interface Definitions Explained

  • 1. Presented By Angelin Angelin
  • 2. Object-Oriented Programming Language ◦ Encapsulation ◦ Abstraction ◦ Inheritance ◦ Polymorphism  ECMA compliant & procedural language  ActionScript code is defined in files with the .as extension or embedded within MXML files using one of the following methods: ◦ Embed ActionScript code in mxml files using the tag <mx:Script> ◦ Include external ActionScript files into mxml, for example : <mx:Script source=”calculateTax.as”> ◦ Import ActionScript classes Angelin
  • 3. ActionScript variables are strongly typed.  Syntax: var varName:VarType = new VarType();  ActionScript variable definitions: ◦ var object:Object = new Object(); ◦ var array:Array = new Array(); ◦ var count:int = 1; // short-hand int definition ◦ var name:String = "Donnie Brasco"; // short-hand string definition ◦ var names:Array = { "Alice", "Bob", "Carl" }; // short-hand array definition  ActionScript does support type-less variables, but it is generally not encouraged. ◦ var var1 = null; // un-typed variable ◦ var var2:* = null; // any-typed variable  ActionScript also supports using "*" (wildcard) as a variables. ◦ var varName:*; The "*" wildcard type means any object type can be assigned to the variable. Angelin
  • 4. int - Represents a 32-bit signed integer.  Number - Represents an IEEE-754 double-precision floating-point number.  Boolean - can have one of two values, either true or false, used for logical operations.  String - Represents a string of characters.  Date – Represents date and time information.  Array – To access and manipulate arrays.  XML - The XML class contains methods and properties for working with XML objects.  XMLList - The XMLList class contains methods for working with one or more XML elements.  uint – A class that provides methods for working with a data type representing a 32- bit unsigned integer.  Error - Contains information about an error that occurred in a script.  RegExp - To work with regular expressions, which are patterns that can be used to perform searches in strings and to replace text in strings. Angelin
  • 5. ActionScript properties can be declared by using five different access modifiers: ◦ internal: Makes the property visible to references inside the same package (the default modifier) ◦ private: Makes the property visible to references only in the same class ◦ protected: Makes the property visible to references in the same class and derived classes ◦ public: Makes the property visible to references everywhere ◦ static: Makes the property accessible via the parent class instead of instances of the class Angelin
  • 6. An ActionScript class must define a public constructor method, which initializes an instance of the class.  A constructor has the following characteristics: ◦ No return type. ◦ Should be declared public. ◦ Might have optional arguments. ◦ Cannot have any required arguments if you use it as an MXML tag. ◦ Calls the super() method to invoke the superclass‟s constructor. The super() method is called from within the constructor which invokes the superclass‟s constructor to initialize the items inherited from the superclass. The super() method should be the first statement in the constructor; Angelin
  • 7. Function Definition syntax: access_modifier function functionName(argName:ArgType, optionalArgName:optionalArgType=defaultValue):ReturnType { Statement1; .. StatementN; }  Invoking a function var returnValue:ReturnType = functionName(argName);  Examples: public function doSomething( arg:Object ):String { return "something"; } //function with an optional argument public function anotherFunction( arg:Object, opt:String=null ):void { // do something } Angelin
  • 8. Events Actions that occur in response to user-initiated and system-initiated actions  Event Handling The technique for specifying certain actions that should be performed in response to particular events.  Example function eventHandler(event:MouseEvent):void { // Actions performed in response to the event go here } myButton.addEventListener(MouseEvent.CLICK, eventHandler); Angelin
  • 9. ActionScript class definition: package packageName { import another.packageName.*; public class ClassName extends SuperClassName implements InterfaceName { public ClassName() { // constructor } } } Angelin
  • 10. ActionScript interface definition: package packageName { public interface InterfaceName extends AnotherInterface { // public not necessary (and not allowed) function methodName():void; } }  ActionScript Interfaces do not allow property definitions. Angelin
  • 11. Runtime Type Checking is done using the „is‟ operator.  Casting of objects is done using the „as‟ operator. The ActionScript „as‟ operator will cast the object and assign it to the variable, but only if object is of the proper type (otherwise it assigns null). ActionScript usage of the „as‟ operator: // use "as" to safely assign object as a Person or null var person:Person = object as Person;  ActionScript runtime type checking and casting example: // cast Object to Person if( object is Person ) { var person:Person = Person ( object ); } Angelin
  • 12. ActionScript "for" and "for each" loops: // “for” loop to loop over an array for( var i:int = 0; i < array.length; i++ ) { // use array[i] } // "for each" loop to loop over a collection var item:Object; for each( item in collection ) { // use item } Angelin
  • 13. ActionScript throws exceptions and supports the try/catch/finally structure for handling them.  ActionScript exception handling using try/catch/finally: // functions do not declare that they throw exception public function doSomething():void { try { // try something } catch( error:Error ) { // handle error by rethrowing throw error; } finally { // executed whether or not there was an exception } } Angelin
  • 14. Initial comment  Package definition  Imports  Metadata ◦ Event ◦ Style ◦ Effect  Class definition ◦ Static variables ◦ Instance variables  public constants  Internal  protected  private constants ◦ Constructor ◦ Getter/setter methods for variables ◦ Methods Angelin
  • 15. Java class definition ActionScript class definition package packageName; package packageName { import another.packageName.*; import another.packageName.*; public class ClassName extends public class ClassName extends SuperClassName implements SuperClassName implements InterfaceName InterfaceName { { public ClassName() public ClassName() { { // constructor // constructor } } } } } Angelin
  • 16. Java interface definition ActionScript interface definition package packageName; package packageName { public interface InterfaceName extends public interface InterfaceName extends AnotherInterface AnotherInterface { { // public is optional (and // public not necessary (and not extraneous) allowed) public void methodName(); function methodName():void; } } } Unlike Java, ActionScript Interfaces do not allow property definitions. Angelin
  • 17. Java variable definitions ActionScript variable definitions Object object = new Object(); var object:Object = new Object(); int count = 1; var count:int = 1; String name = “Don Bradman"; var name:String = "Don Bradman"; String[] names = { "Alice", "Bob", var names:Array = { "Alice", "Bob", "Carl" }; "Carl" }; // ActionScript arrays are untyped ActionScript does support type-less variables, but it is generally not encouraged. var var1 = null; // un-typed variable var var2:* = null; // any-typed variable Angelin
  • 18. Java method definition ActionScript method definition public String doSomething( Object public function doSomething( arg:Object arg ) ):String { { return "something"; return "something"; } } ActionScript also allows optional function arguments. ActionScript function definition with optional function argument: public function anotherFunction( arg:Object, opt:String=null ):void { // do something } Angelin
  • 19. Java runtime type checking and ActionScript runtime type checking and casting casting // cast Object to Person // cast Object to Person if( object instanceof Person ) if( object is Person ) { { Person person = (Person) var person:Person = Person( object ); object; } } For runtime type checking ActionScript uses the „is‟ operator. For runtime type checking Java uses the „instanceof ‟operator ActionScript also offers another method, similar to casting, using the „as‟ operator. The ActionScript „as‟ operator will cast the object and assign it the variable, but only if object is of the proper type (otherwise it assigns null). // use "as" to safely assign object as a Person or null var person:Person = object as Person; Angelin
  • 20. Java "for" and "for each" loops ActionScript "for" and "for each" loops // loop over an array // loop over an array for( int i = 0; i < array.length; i++) for( var i:int = 0; i < array.length; i++) { { // use array[i] // use array[i] } } // loop over a collection // loop over a collection for( Object item : myCollection) for each(var item:Object in myCollection) { { // use item // use item } } Angelin
  • 21. Java exception handling ActionScript exception handling // method declared to throw an // functions do not declare that they exception throw exception public void doSomething() throws public function doSomething():void Exception { { try try { { // try something // try something } } catch( error:Error ) catch( Exception ex ) { { // handle error by rethrowing // handle exception by throw error; rethrowing } throw ex; finally } { finally // reached whether or not there is { an exception // reached whether or not there } is an exception } Angelin } }
  • 22. Java Accessor Functions (Get/Set) ActionScript Accessor Functions (Get/Set) public class Person public class Person { { private String name = null; private var _name:String; public String getName() public function get name():String { { return this.name; return _name; } } public void setName( String name ) public function set name( value:String { ):void this.name = name; { } _name = value; } } } Angelin
  • 23. Java Singleton Class ActionScript Singleton Class package examples; package examples { public class Singleton public class Singleton { { private static final Singleton _instance static private const _instance:Singleton = new = new Singleton(); Singleton(); private Singleton() // private constructors not supported {} public Singleton() { public Singleton getInstance() if( _instance ) { { return _instance; throw new Error( "Singleton instance already } exists." ); } } } static public function get instance():Singleton { return _instance; } } Angelin }
  • 24. Concept/Language Java 5.0 ActionScript 3.0 Construct Class library packaging .jar .swc class Employee extends class Employee extends Inheritance Person{…} Person{…} var firstName:String=”John”; String firstName=”John”; var shipDate:Date=new Variable declaration and Date shipDate=new Date(); Date(); initialization int i;int a, b=10; var i:int;var a:int, b:int=10; double salary; var salary:Number; It‟s an equivalent to the wild card type notation *. If you Undeclared variables Not Applicable declare a variable but do not specify its type, the * type will apply. If you write one statement per Terminating statements Mandatory line you can omit semicolon with semicolons at the end of that statement. Angelin
  • 25. Concept/Language Java 5.0 ActionScript 3.0 Construct No block scope. block: declared within curly local: declared within a braces, function local: declared within a method member: declared at the Variable scopes or a block class level member: declared at the class global: If a variable is level declared outside of any global: no global variables function or class definition, it has global scope. Immutable; stores Immutable; stores sequences of Strings sequences of two-byte two-byte Unicode characters Unicode characters for strict equality use === Strict equality operator Not Applicable for strict non-equality use !== The keyword final The keyword const Constant qualifier final int STATE=”NY”; const STATE:int =”NY”; Angelin
  • 26. Concept/Language Java 5.0 ActionScript 3.0 Construct The top class in the Object Object inheritance tree Dynamic (checked at run-time) and static Static (checked at Type checking (it‟s so called „strict mode‟, which is default compile time) in Flex Builder) is – checks data type. Type check i.e. if (myVar is String){…} instanceof operator The „is‟ operator is a replacement of older instanceof Similar to „is‟ operator, but does not return Boolean, instead returns the result of expression The „as‟ operator Not Applicable var orderId:String=”123″; var orderIdN:Number=orderId as Number; trace(orderIdN);//prints 123 Person p=(Person) var p:Person= Person(myObject); Casting Angelin myObject; orvar p:Person= myObject as Person;
  • 27. Concept/Language Java 5.0 ActionScript 3.0 Construct All primitives in ActionScript are objects. byte, int, long, Boolean, int, uint, Number, String. float, Primitives The following lines are equivalent: double,short, var age:int = 25; boolean, char var age:int = new int(25); Array, Date, Error, Function, RegExp, XML, Complex types Not Applicable and XMLList var quarterResults:Array int =new Array(); quarterResults[]; orvar quarterResults:Array=[]; quarterResults = Array declaration var quarterResults:Array= new int[4]; and instantiation [25, 33, 56, 84]; int AS3 also has associative arrays that uses quarterResults[]={ named elements instead of numeric indexes 25,33,56,84}; (similar to Hashtable). var myObject:*; Un-typed variable Not Applicable var myObject; Angelin
  • 28. Concept /Language Java 5.0 ActionScript 3.0 Construct package com.xyz{class myClass{…}} package com.xyz; packages ActionScript packages can include not only class myClass {…} classes, but separate functions as well public, private, public, private, protected protected if none is specified, classes have internal Class access if none is specified, access level (similar to package access level in levels classes have package Java) access level Similar to XML namespaces. Custom access namespace abc; levels: Not Applicable abc function myCalc(){} namespaces or abc::myCalc(){}use namespace abc ; Angelin
  • 29. Concept /Language Java 5.0 ActionScript 3.0 Construct Hashtable, Associative Arrays allows referencing its MapHashtable friends = elements by names instead of indexes. new Hashtable(); var friends:Array=new Array(); friends.put(“good”, friends["good"]=”Mary”; “Mary”); friends["best"]=”Bill”; friends.put(“best”, friends["bad"]=”Masha”; Unordered “Bill”); var bestFriend:String= friends["best"]; key-value friends.put(“bad”, friends.best=”Alex”; pairs “Masha”); Another syntax: String bestFriend= var car:Object = {make:”Toyota”, friends.get(“best”);// model:”Camry”}; bestFriend is Bill trace (car["make"], car.model); // Output: Toyota Camry Angelin
  • 30. Concept /Language Java 5.0 ActionScript 3.0 Construct Console // in debug mode only System.out.println(); output trace(); import com.abc.*; import com.abc.*; import com.abc.MyClass; imports import packages must be imported even if the class com.abc.MyClass; names are fully qualified in the code. Compiler moves all variable declarations to the top of the function. So, you can use a Hoisting Not Applicable variable name even before it has been explicitly declared in the code. Angelin
  • 31. Concept/Language Java 5.0 ActionScript 3.0 Construct Customer cmr = var cmr:Customer = new Customer(); new Customer(); var cls:Class = Instantiation Class cls = flash.util.getClassByName(“Customer”); objects from Class.forName(“C var myObj:Object = new cls(); classes ustomer”);Object myObj= cls.newInstance(); private class There is no private classes in AS3. Private classes myClass{…} Supported. Not available. Typical use: Implementation of private constructors is singleton classes. postponed as they are not the part of the ECMAScript standard yet. Private constructors To create a Singleton, use public static getInstance(), which sets a private flag instanceExists after the first instantiation. Angelin Check this flag in the public constructor, and if instanceExists==true, throw an error.
  • 32. Concept/Language Java 5.0 ActionScript 3.0 Construct A file can have multiple A file can have multiple class class declarations, but declarations, but only one of them Class and file only one of them can be can be placed inside the package names public, and the file must declaration, and the file must have have the same name as the same name as this class. this class. dynamic class Person {var name:String;} Dynamic classes //Dynamically add a variable and a function (define an object Person p= new Person(); that can be altered p.name=”Joe”; at runtime by Not Applicable p.age=25; adding or changing p.printMe = function () { properties and trace (p.name, p.age); methods). } Angelin p.printMe(); // Joe 25
  • 33. Concept/Language Java 5.0 ActionScript 3.0 Construct Not Applicable. myButton.addEventListener(“click”, Closure is a proposed myMethod); addition to Java 8. A closure is an object that represents a snapshot of a function with its lexical Function closures context (variable‟s values, objects in the scope). A function closure can be passed as an argument and executed without being a part of any object Abstract classes Supported Not Applicable class A implements B class A implements B {…} {…} Interfaces can contain only function Interfaces Interfaces can contain declarations. method declarations and final variables. Classes and interfaces Classes, interfaces, variables, functions, What can be placed namespaces, and executable in a package Angelin statements.
  • 34. Concept/Language Java 5.0 ActionScript 3.0 Construct Supported. You must use the override Function overriding Supported qualifier Function Supported Not supported. overloading Keywords: try, catch, throw, finally A method does not have to declare Keywords: try, catch, exceptions. throw, finally, throws. Can throw not only Error objects, but Exception handling Uncaught exceptions also numbers. For example, are propagated to the throw 25.3; calling method. Flash Player terminates the script in case of any uncaught exception. Regular Supported Supported expressions Angelin
  • 35. Almost anything that you can do in a custom ActionScript custom component, you can also do in a custom MXML component. However, for simple components, such as components that modify the behaviour of an existing component or add a basic feature to an existing component, it is simpler and faster to create them in MXML.  When your new component is a composite component that contains other components, and you can express the positions and sizes of those other components using one of the Flex layout containers, you should use MXML to define your component. Angelin
  • 36. To modify the behaviour of the component, such as the way a container lays out its children, use ActionScript.  To create a visual component by creating a subclass from UIComponent, use ActionScript.  To create a non-visual component, such as a formatter, validator, or effect, use ActionScript.  To add logging support to your control, use ActionScript. Angelin