Package | pq.multitouch |
Class | public class Blob |
Inheritance | Blob ![]() |
Property | Defined by | ||
---|---|---|---|
id : uint
[read-only]Get the touchID of current touch blob instance.
| Blob | ||
x : Number
[read-only]Indicates the center X-position of the touch blob instance in current frame, in screen coordinate.
| Blob | ||
y : Number
[read-only]Indicates the center Y-position of the touch blob instance in current frame, in screen coordinate.
| Blob | ||
center : Point
[read-only]Indicates the center position of the touch blob instance in current frame, in screen coordinate.
| Blob | ||
width : Number
[read-only]Indicates the width of the touch blob instance.
| Blob | ||
height : Number
[read-only]Indicates the height of the touch blob instance.
| Blob | ||
lastX : Number
[read-only]Indicates the center X-position of the touch blob instance in last frame, in screen coordinate.
| Blob | ||
lastY : Number
[read-only]Indicates the center Y-position of the touch blob instance in last frame, in screen coordinate.
| Blob | ||
downX : Number
[read-only]Indicates the touch down X-position of the touch blob instance, in screen coordinate.
| Blob | ||
downY : Number
[read-only]Indicates the touch down Y-position of the touch blob instance in last frame, in screen coordinate.
| Blob | ||
frameID : Number
[read-only]Get the frameID of current touch blob instance.
| Blob | ||
downFrameID : Number
[read-only]Get the frameID indicates which frame the touch blob is down.
| Blob | ||
downObj : DisplayObject
[read-only]Get the display object that lie under the touch blob when it touch down.
No matter where this touch blob moves to, this value will not change.
| Blob |
Method | Defined by | ||
---|---|---|---|
Blob(touchId:uint,screenX:Number,screenY:Number,width:Number,height:Number,frameId:Number, downObj:DisplayObject):void
The Blob class hold the information of touch blobs, like touchID, position, size, etc.
| Blob | ||
clone():Blob
Creates a copy of the Blob object and sets the value of each property to match that of the original.
|
Blob | ||
toString():String
Returns a string that contains properties of the Blob object.
|
Blob |
id | property |
id:uint
[read-only]
Get the touchID of current touch blob instance.
Implementationpublic function get |
x | property |
x:Number
[read-only]
Indicates the center X-position of the touch blob instance in current frame, in screen coordinate.
Implementationpublic function get |
y | property |
y:Number
[read-only]
Indicates the center Y-position of the touch blob instance in current frame, in screen coordinate.
Implementationpublic function get |
center | property |
center:Point
[read-only]
Indicates the center position of the touch blob instance in current frame, in screen coordinate.
Implementationpublic function get |
width | property |
width:Number
[read-only]
Indicates the width of the touch blob instance.
Implementationpublic function get |
height | property |
frameID:Array
[read-only]
Indicates the height of the touch blob instance.
Implementationpublic function get |
lastX | property |
lastX:Number
[read-only]
Indicates the center X-position of the touch blob instance in last frame, in screen coordinate.
Implementationpublic function get |
lastY | property |
lastY:Number
[read-only]
Indicates the center Y-position of the touch blob instance in last frame, in screen coordinate.
Implementationpublic function get |
downX | property |
downX:Number
[read-only]
Indicates the touch down X-position of the touch blob instance, in screen coordinate.
Implementationpublic function get |
downY | property |
downY:Number
[read-only]
Indicates the touch down X-position of the touch blob instance, in screen coordinate.
Implementationpublic function get |
frameID | property |
frameID:Number
[read-only]
Get the frameID of current touch blob instance.
Implementationpublic function get |
downFrameID | property |
downFrameID:Number
[read-only]
Get the frameID indicates which frame the touch blob is down.
Implementationpublic function get |
downObj | property |
downObj:DisplayObject
[read-only]
Get the display object that lie under the touch blob when it touch down. No matter where this touch blob moves to, this value will not change.
Implementationpublic function get |
clone |
() | method |
public override function clone():Blob
Creates a copy of the Blob object and sets the value of each property to match that of the original.
ReturnsBlob — A new Blob object with property values that match those of the original. |
toString | () | method |
public override function toString():String
Returns a string that contains properties of the Blob object. The string is in the following format: [Blob frameID=value touchID=value x=value ... isMoving=value]
ReturnsString — properties string of the Blob object. |