Point (Flash.geom.point) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

// Return the value of newVal.
return newVal;
}
// Use watch() to register the event handler, passing as parameters:
// - the name of the property to watch: "speed"
// - a reference to the callback function speedWatcher
// - the speedLimit of 55 as the userData parameter
myObject.watch("speed", speedWatcher, 55);
// set the speed property to 54, then to 57
myObject.speed = 54; // output: You are not speeding
myObject.speed = 57; // output: You are speeding
// unwatch the object
myObject.unwatch("speed");
myObject.speed = 54; // there should be no output
See also
addProperty (Object.addProperty method)

Point (flash.geom.Point)

Object
|
+-flash.geom.Point
public class Point
extends Object
The Point class represents a location in a two-dimensional coordinate system, where x
represents the horizontal axis and y represents the vertical axis.
The following code creates a point at (0,0):
var myPoint:Point = new Point();
Availability: ActionScript 1.0; Flash Player 8
Property summary
Modifiers
Property
length:Number
x:Number
y:Number
,
unwatch (Object.unwatch method)
Description
The length of the line segment from (0,0) to this point.
The horizontal coordinate of the point.
The vertical coordinate of the point.
Point (flash.geom.Point) 1009

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF