Package | com.chargedweb.swfsize |
Class | public class SWFSizeEvent |
Inheritance | SWFSizeEvent ![]() |
The SWFSizeEvent class defines events that are associated with the SWFSize object.
These include the following events:
SWFSizeEvent.INIT
: dispatched when SWFSize js is loaded and ready;SWFSizeEvent.SCROLL
: dispatched when user scrolls browser's native scrollbars;SWFSizeEvent.RESIZE
: dispatched when browser's window is being resized.See also
Property | Defined By | ||
---|---|---|---|
bottomY : Number
Current browser's window bottomY coordinate value
| SWFSizeEvent | ||
leftX : Number
Current browser's window leftX coordinate value
| SWFSizeEvent | ||
rightX : Number
Current browser's window rightX coordinate value
| SWFSizeEvent | ||
scrollX : Number
Current scrollX value
| SWFSizeEvent | ||
scrollY : Number
Current scrollY value
| SWFSizeEvent | ||
swfHeight : Object
Current swf container's height value
| SWFSizeEvent | ||
swfWidth : Object
Current swf container's width value
| SWFSizeEvent | ||
topY : Number
Current browser's window topY coordinate value
| SWFSizeEvent | ||
windowHeight : Number
Current browser's height width value
| SWFSizeEvent | ||
windowWidth : Number
Current browser's window width value
| SWFSizeEvent |
Method | Defined By | ||
---|---|---|---|
SWFSizeEvent(type:String, leftX:Number, rightX:Number, topY:Number, bottomY:Number, windowWidth:Number, windowHeight:Number, swfWidth:Object, swfHeight:Object, scrollX:Number, scrollY:Number, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor; creates a new SWFSizeEvent object. | SWFSizeEvent | ||
toString():String [override]
Formats the event as string
| SWFSizeEvent |
Constant | Defined By | ||
---|---|---|---|
INIT : String = onInit [static]
The SWFSizeEvent.INIT constant defines the value of the type property of the
event object for a onInit event; dispatched when SWFSize js is loaded and ready.
| SWFSizeEvent | ||
RESIZE : String = onResize [static]
The SWFSizeEvent.SCROLL constant defines the value of the type property of the
event object for a onResize event; dispatched when the browser's window is being resized.
| SWFSizeEvent | ||
SCROLL : String = onScroll [static]
The SWFSizeEvent.SCROLL constant defines the value of the type property of the
event object for a onScroll event; dispatched when user scrolls the browser's native scrollbars.
| SWFSizeEvent |
bottomY | property |
public var bottomY:Number
Current browser's window bottomY coordinate value
leftX | property |
public var leftX:Number
Current browser's window leftX coordinate value
rightX | property |
public var rightX:Number
Current browser's window rightX coordinate value
scrollX | property |
public var scrollX:Number
Current scrollX value
scrollY | property |
public var scrollY:Number
Current scrollY value
swfHeight | property |
public var swfHeight:Object
Current swf container's height value
swfWidth | property |
public var swfWidth:Object
Current swf container's width value
topY | property |
public var topY:Number
Current browser's window topY coordinate value
windowHeight | property |
public var windowHeight:Number
Current browser's height width value
windowWidth | property |
public var windowWidth:Number
Current browser's window width value
SWFSizeEvent | () | Constructor |
public function SWFSizeEvent(type:String, leftX:Number, rightX:Number, topY:Number, bottomY:Number, windowWidth:Number, windowHeight:Number, swfWidth:Object, swfHeight:Object, scrollX:Number, scrollY:Number, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor; creates a new SWFSizeEvent object.
Parameterstype:String — event type
| |
leftX:Number — browser's leftX coordinate
| |
rightX:Number — browser's rightX coordinate
| |
topY:Number — browser's topY coordinate
| |
bottomY:Number — the browser's bottomY coordinate
| |
windowWidth:Number — the browser's window width value
| |
windowHeight:Number — the browser's window height value
| |
swfWidth:Object — swf container's width value object
| |
swfHeight:Object — swf container's height value object
| |
scrollX:Number — current scrollX value
| |
scrollY:Number — current scrollY value
| |
bubbles:Boolean (default = false ) — bubbles | |
cancelable:Boolean (default = false ) — cancelable |
See also
toString | () | method |
override public function toString():String
Formats the event as string
ReturnsString — the string representation of the SWFSizeEvent class.
|
INIT | Constant |
public static const INIT:String = onInit
The SWFSizeEvent.INIT constant defines the value of the type
property of the
event object for a onInit
event; dispatched when SWFSize js is loaded and ready.
RESIZE | Constant |
public static const RESIZE:String = onResize
The SWFSizeEvent.SCROLL constant defines the value of the type
property of the
event object for a onResize
event; dispatched when the browser's window is being resized.
SCROLL | Constant |
public static const SCROLL:String = onScroll
The SWFSizeEvent.SCROLL constant defines the value of the type
property of the
event object for a onScroll
event; dispatched when user scrolls the browser's native scrollbars.