public final class Sprite extends DisplayObjectContainer
CLICK, DOUBLECLICK, FOCUSIN, FOCUSOUT, KEYDOWN, KEYFOCUSCHANGE, KEYUP, MOUSEDOWN, MOUSEFOCUSCHANGE, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, ROLLOUT, ROLLOVER, TABCENABLEDCHANGE, TABCHILDRENCHANGE, TABINDEXCHANGEADDED, ADDED_TO_STAGE, ENTERFRAME, REMOVED, REMOVED_FROM_STAGE, RENDERACTIVATE, DEACTIVATE| Modifier | Constructor and Description |
|---|---|
protected |
Sprite() |
| Modifier and Type | Method and Description |
|---|---|
static Sprite |
create() |
DisplayObject |
getDropTarget()
Specifies the display object over which the sprite is being dragged, or
on which the sprite was dropped.
|
Graphics |
getGraphics()
Specifies the Graphics object that belongs to this sprite where vector
drawing commands can occur.
|
Sprite |
getHitArea()
Designates another sprite to serve as the hit area for a sprite.
|
static Sprite |
getRootSprite() |
boolean |
isButtonMode()
Specifies the button mode of this sprite.
|
boolean |
isUseHandCursor() |
void |
setButtonMode(boolean mode) |
void |
setHitArea(Sprite hitArea) |
void |
setUseHandCursor(boolean b) |
void |
startDrag(boolean lockCenter,
Rectangle bounds)
Lets the user drag the specified sprite.
|
void |
stopDrag()
Ends the startDrag() method.
|
addChild, addChildAt, areInaccessibleObjectsUnderPoint, contains, getChildAt, getChildByName, getChildIndex, getNumChildren, getObjectsUnderPoint, isMouseChildren, isTabChildren, removeChild, removeChildAt, setChildIndex, setMouseChildren, setTabChildren, swapChildren, swapChildrenAtgetDoubleClickEnabled, getMouseEnabled, getTabEnabled, getTabIndex, setMouseEnabled, setTabEnabled, setTabIndexgetAlpha, getBlendMode, getBounds, getCacheAsBitmap, getFilters, getHeight, getLoaderInfo, getMask, getMouseX, getMouseY, getName, getParent, getRect, getRoot, getRotation, getScale9Grid, getScaleX, getScaleY, getScrollRect, getStage, getTransform, getWidth, getX, getY, globalToLocal, hitTestObject, hitTestPoint, localToGlobal, setAlpha, setBlendMode, setCacheAsBitmap, setFilters, setHeight, setMask, setName, setRotation, setScale9Grid, setScaleX, setScaleY, setScrollRect, setTransform, setTransform, setVisible, setWidth, setX, setY, visibleaddEventListener, dispatchEvent, hasEventListener, removeEventListener, willTriggerpublic static Sprite getRootSprite()
public static Sprite create()
public boolean isButtonMode()
public void setButtonMode(boolean mode)
public DisplayObject getDropTarget()
public Graphics getGraphics()
public Sprite getHitArea()
public void setHitArea(Sprite hitArea)
public boolean isUseHandCursor()
public void setUseHandCursor(boolean b)
public void startDrag(boolean lockCenter,
Rectangle bounds)
lockCenter - bounds - public void stopDrag()
Copyright © 2013. All Rights Reserved.