Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Flash ActionScript
Class 94 codes
Home
Flash ActionScript
Class
1 A class named Product with a constructor and a method
2 A Primer on Inheritance
3 A simple example of a method declaration using parameters
4 Access Control Modifiers for Classes are listed before the keyword class in a class definition
5 Access Control Modifiers for Instance Methods
6 Accessing Object Methods
7 Accessing Object Properties
8 Add an instance variable
9 Add assignment code to class constructor
10 Add method to class
11 Add new method to the children class
12 Add public attribute to contrustor
13 Adding Static Methods to a Class
14 Adding Static Properties to a Class
15 Another option is to use implicit getters and setters
16 Build a returning value from get property method
17 Call setPropertyIsEnumerable in dynamic object
18 Call super constructor with parameter
19 Change member variable value in member method
20 Class composition
21 Class Objects
22 Class Scope
23 Class with final method
24 Constructor Methods in Subclasses
25 Constructor with parameter
26 Convert class to the more general type without writing any explicit code
27 Create a method and then call it by name
28 Create dynamic class
29 Creating a Constructor
30 Creating an Object
31 Creating Interfaces
32 Declare a constructor method for the Example class
33 Declares a new private property called _id within the Example class
34 Define a class
35 Define class with properties
36 Define instance variable varName with the access-control modifier internal
37 Defining Methods for a Class
38 Dynamic ActionScript
39 Dynamic References to Variables and Methods
40 Dynamically Adding New Behavior to an Instance
41 Extends an interface
42 Extends the super class
43 If a subclass does not define a constructor, ActionScript automatically creates one and adds a super call as its only statement
44 If you want the toString( ) method of Subclass to return a different value, youll need to override it in the subclass
45 Implement an Interface
46 Implement interface
47 Implement two interface
48 Implementing an Interface
49 Implementing Subclass Versions of Superclass Methods
50 Inherit protected variable
51 Inheritance vs Composition
52 Interface Inheritance
53 Interface Syntax and Use
54 Internal variable
55 Invoking an Overridden Instance Method
56 Making Lookup Tables with Object Literals
57 Managing ParameterVariable Name Conflicts with this
58 Method Parameters and Arguments
59 Method Returning Values
60 Override method from parent class
61 Overriding Behavior
62 Overriding Instance Methods
63 Polymorphism Demo
64 Preventing Classes from Being Extended and Methods from Being Overridden
65 Preventing Inheritance by using final keyword
66 Private variable is not inherited
67 Processing Dynamic Instance Variables with for-each-in and for-in Loops
68 Protected member variables
69 Reference static variable
70 Removing Properties
71 Set the memeber variable in constructor
72 Singleton Pattern
73 Singleton pattern with getInstance
74 Static Constants
75 Static Methods
76 Static Methods and Static Variables Not Inherited
77 Static Variables
78 Testing for Existence
79 The Internal Details
80 Three-level inheritance
81 Update data in a member method
82 Use get and set for properties
83 Use get and set to define the readable and writable properties
84 Use private attribute to define instance variable
85 Use super methodName to call method in the super class
86 Use this operator to investigate instances of classes for methods and public properties
87 Use this to reference member variable
88 Using Dynamic Instance Variables to Create Lookup Tables
89 Using Methods to Examine and Modify an Objects State
90 Using Objects as Associative Arrays
91 Using Static Methods and Properties
92 Using the dot ( ) operator to create the same variable causes an error because it violates the syntactic rules for identifiers
93 Using the returning value from method to do the calculation
94 You can call the superclass implementation from the subclass implementation using the super keyword to reference the superclass