Packagepq.multitouch
Classpublic class Blob
Inheritance Blob InheritanceObject

The Blob class hold the information of touch blobs, like touchID, postion, size, etc.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property detail
id property  
id:uint [read-only]

Get the touchID of current touch blob instance.

Implementation

public function get id ():uint

x property  
x:Number [read-only]

Indicates the center X-position of the touch blob instance in current frame, in screen coordinate.

Implementation

public function get x ():Number

y property  
y:Number [read-only]

Indicates the center Y-position of the touch blob instance in current frame, in screen coordinate.

Implementation

public function get y ():Number

center property  
center:Point [read-only]

Indicates the center position of the touch blob instance in current frame, in screen coordinate.

Implementation

public function get center():Point

width property  
width:Number [read-only]

Indicates the width of the touch blob instance.

Implementation

public function get width():Number

height property  
frameID:Array [read-only]

Indicates the height of the touch blob instance.

Implementation

public function get height():Number

lastX property  
lastX:Number [read-only]

Indicates the center X-position of the touch blob instance in last frame, in screen coordinate.

Implementation

public function get lastX():Number

lastY property  
lastY:Number [read-only]

Indicates the center Y-position of the touch blob instance in last frame, in screen coordinate.

Implementation

public function get lastY():Number

downX property  
downX:Number [read-only]

Indicates the touch down X-position of the touch blob instance, in screen coordinate.

Implementation

public function get downX():Number

downY property  
downY:Number [read-only]

Indicates the touch down X-position of the touch blob instance, in screen coordinate.

Implementation

public function get downY():Number

frameID property  
frameID:Number [read-only]

Get the frameID of current touch blob instance.

Implementation

public function get frameID():Number

downFrameID property  
downFrameID:Number [read-only]

Get the frameID indicates which frame the touch blob is down.

Implementation

public function get downFrameID():Number

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.

Implementation

public function get downObj():DisplayObject

Method detail

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.

Returns

Blob 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]

Returns

String properties string of the Blob object.