| Package | com.flashdynamix.motion.effects.core |
| Class | public class ScrollEffect |
| Implements | IEffect |
| Property | Defined by | ||
|---|---|---|---|
| xDir : int
The x scroll amount in pixels.
| ScrollEffect | ||
| yDir : int
The y scroll amount in pixels.
| ScrollEffect | ||
| Method | Defined by | ||
|---|---|---|---|
|
ScrollEffect(xDir:int = 0, yDir:int = 0)
| ScrollEffect | ||
|
render(bmd:BitmapData):void
Scrolls the specified BitmapData in either an x or y direction.
| ScrollEffect | ||
| xDir | property |
public var xDir:intThe x scroll amount in pixels.
| yDir | property |
public var yDir:intThe y scroll amount in pixels.
| ScrollEffect | () | constructor |
public function ScrollEffect(xDir:int = 0, yDir:int = 0)Parameters
xDir:int (default = 0) — The x scroll amount in pixels.
|
|
yDir:int (default = 0) — The y scroll amount in pixels.
|
| render | () | method |
public function render(bmd:BitmapData):voidScrolls the specified BitmapData in either an x or y direction.
Parametersbmd:BitmapData |