Package | net.flashpunk |
Class | public class Screen |
Inheritance | Screen Object |
Property | Defined By | ||
---|---|---|---|
angle : Number
Rotation of the screen, in degrees. | Screen | ||
color : uint
Refresh color of the screen. | Screen | ||
height : uint [read-only]
Height of the screen. | Screen | ||
mouseX : int [read-only]
X position of the mouse on the screen. | Screen | ||
mouseY : int [read-only]
Y position of the mouse on the screen. | Screen | ||
originX : int
X origin of transformations. | Screen | ||
originY : int
Y origin of transformations. | Screen | ||
scale : Number
Scale factor of the screen. | Screen | ||
scaleX : Number
X scale of the screen. | Screen | ||
scaleY : Number
Y scale of the screen. | Screen | ||
smoothing : Boolean
Whether screen smoothing should be used or not. | Screen | ||
width : uint [read-only]
Width of the screen. | Screen | ||
x : int
X offset of the screen. | Screen | ||
y : int
Y offset of the screen. | Screen |
Method | Defined By | ||
---|---|---|---|
Screen()
Constructor. | Screen | ||
Captures the current screen as an Image object. | Screen | ||
redraw():void
Redraws the screen. | Screen | ||
refresh():void
Refreshes the screen. | Screen | ||
resize():void
Initialise buffers to current screen size. | Screen | ||
swap():void
Swaps screen buffers. | Screen |
angle | property |
angle:Number
Rotation of the screen, in degrees.
public function get angle():Number
public function set angle(value:Number):void
color | property |
color:uint
Refresh color of the screen.
public function get color():uint
public function set color(value:uint):void
height | property |
height:uint
[read-only] Height of the screen.
public function get height():uint
mouseX | property |
mouseX:int
[read-only] X position of the mouse on the screen.
public function get mouseX():int
mouseY | property |
mouseY:int
[read-only] Y position of the mouse on the screen.
public function get mouseY():int
originX | property |
originX:int
X origin of transformations.
public function get originX():int
public function set originX(value:int):void
originY | property |
originY:int
Y origin of transformations.
public function get originY():int
public function set originY(value:int):void
scale | property |
scale:Number
Scale factor of the screen. Final scale is scaleX scale by scaleY scale, so you can use this factor to scale the screen both horizontally and vertically.
public function get scale():Number
public function set scale(value:Number):void
scaleX | property |
scaleX:Number
X scale of the screen.
public function get scaleX():Number
public function set scaleX(value:Number):void
scaleY | property |
scaleY:Number
Y scale of the screen.
public function get scaleY():Number
public function set scaleY(value:Number):void
smoothing | property |
smoothing:Boolean
Whether screen smoothing should be used or not.
public function get smoothing():Boolean
public function set smoothing(value:Boolean):void
width | property |
width:uint
[read-only] Width of the screen.
public function get width():uint
x | property |
x:int
X offset of the screen.
public function get x():int
public function set x(value:int):void
y | property |
y:int
Y offset of the screen.
public function get y():int
public function set y(value:int):void
Screen | () | Constructor |
public function Screen()
Constructor.
capture | () | method |
public function capture():Image
Captures the current screen as an Image object.
ReturnsImage — A new Image object.
|
redraw | () | method |
public function redraw():void
Redraws the screen.
refresh | () | method |
public function refresh():void
Refreshes the screen.
resize | () | method |
public function resize():void
Initialise buffers to current screen size.
swap | () | method |
public function swap():void
Swaps screen buffers.