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 withcom.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
Constructor
PointEvent
Constructs a new
PointEvent instance.Example
var e : PointEvent = new PointEvent(MyClass.onSomething, new Point(10,2) );
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:
a com.bourre.structures.Point instance
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:
p:
toString
function toString (
) : String
Returns the string representation of this instance.
Returns:
String representation of this instanceOverrides: