Packagecom.chargedweb.swfsize
Classpublic class SWFSizeEvent
InheritanceSWFSizeEvent Inheritance flash.events.Event

The SWFSizeEvent class defines events that are associated with the SWFSize object.

These include the following events:

See also

SWFSize


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Property Detail
bottomYproperty
public var bottomY:Number

Current browser's window bottomY coordinate value

leftXproperty 
public var leftX:Number

Current browser's window leftX coordinate value

rightXproperty 
public var rightX:Number

Current browser's window rightX coordinate value

scrollXproperty 
public var scrollX:Number

Current scrollX value

scrollYproperty 
public var scrollY:Number

Current scrollY value

swfHeightproperty 
public var swfHeight:Object

Current swf container's height value

swfWidthproperty 
public var swfWidth:Object

Current swf container's width value

topYproperty 
public var topY:Number

Current browser's window topY coordinate value

windowHeightproperty 
public var windowHeight:Number

Current browser's height width value

windowWidthproperty 
public var windowWidth:Number

Current browser's window width value

Constructor Detail
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.

Parameters
type: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

flash.events.Event
flash.events.Event
Method Detail
toString()method
override public function toString():String

Formats the event as string

Returns
String — the string representation of the SWFSizeEvent class.
Constant Detail
INITConstant
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.

RESIZEConstant 
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.

SCROLLConstant 
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.