Object Function; On Handler - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Object function

Object([value:Object]) : Object
Creates a new empty object or converts the specified number, string, or Boolean value to an
object. This command is equivalent to creating an object using the Object constructor (see
"Constructor for the Object class").
Availability: ActionScript 1.0; Flash Player 5
Parameters
[optional] - A number, string, or Boolean value.
value:Object
Returns
- An object.
Object
Example
In the following example, a new empty object is created, and then the object is populated with
values:
var company:Object = new Object();
company.name = "Macromedia, Inc.";
company.address = "600 Townsend Street";
company.city = "San Francisco";
company.state = "CA";
company.postal = "94103";
for (var i in company) {
trace("company."+i+" = "+company[i]);
}
See also
Object

on handler

on(mouseEvent:Object) {
// your statements here
}
Specifies the mouse event or keypress that triggers an action.
Availability: ActionScript 1.0; Flash Player 2 - Flash 2. Not all events are supported in Flash
2.
82
ActionScript language elements

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF