new Operator

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
new Operator Flash 5

instantiate a new object
new constructor()

Operands

constructor

A class constructor function used to initialize the new object.

Returns

A reference to the newly created object.

Description

The new operator creates an instance of the class specified by constructor. For complete coverage of the role new plays in object-oriented programming, see Chapter 12.

See Also

Object._ _proto_ _; Section 5.12.2; Chapter 12



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net