PointEvent

Kind of class:class
Inherits from:BasicEvent
Version:1.0
Author:Francis Bourre
Classpath:com.bourre.events.PointEvent
File last modified:Wednesday, 31 October 2007, 07:35:29
PointEvent defines specific event structure to work with
com.bourre.structures.Point instance.

Based on BasicEvent class, PointEvent add access
to his specific com.bourre.structures.Point property with
getPoint and setPoint methods.

Summary

Constructor
Instance properties
Instance properties inherited from BasicEvent
Instance methods
Instance methods inherited from BasicEvent

Constructor

PointEvent

function PointEvent (
Constructs a new PointEvent instance.

Example

var e : PointEvent = new PointEvent(MyClass.onSomething, new Point(10,2) );
Parameters:
e:
an EventType instance (event name).

Instance methods

getPoint

function getPoint (
) : Point
Returns instance com.bourre.structures.Point value.

Example

var e : PointEvent = new PointEvent(MyClass.onSomething, new Point(10,2) );
trace( e.getPoint() );
Returns:

setPoint

function setPoint (
p:Point) : Void
Defines instance com.bourre.structures.Point value.

Example

var e : PointEvent = new PointEvent(MyClass.onSomething);
e.setPoint( new Point(10,2) );
Parameters:

toString

function toString (
) : String
Returns the string representation of this instance.
Returns:
String representation of this instance