Packagede.mightypirates.megazine.events
Classpublic class ZoomChangeEvent
InheritanceZoomChangeEvent Inheritance flash.events.Event

This event is used by the MegaZine class to signal scaling changes of the page container (thus the display size of the pages).

This event is fired with a small delay after the last actual scaling change, and will only be fired once for any major scaling change. For example, if the user starts changing the window size and the page container adjusts accordingly, if the user continually changes the size over a longer period of time, no event will be fired during that time. Only when she stops dragging will the event be fired, with the final scaling used.



Public Properties
 PropertyDefined by
  newZoom : Number
[read-only] The new scale of the book's pages.
ZoomChangeEvent
  oldZoom : Number
[read-only] The old scale of the book's pages (before the event was triggered at all, i.e.
ZoomChangeEvent
Public Methods
 MethodDefined by
  
ZoomChangeEvent(type:String, oldZoom:Number, newZoom:Number, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new MegaZine load state change event.
ZoomChangeEvent
Public Constants
 ConstantDefined by
  ZOOM_CHANGE : String = "zoom_change"
[static] Used by the MegaZine class when its page scaling changes.
ZoomChangeEvent
  ZOOM_CHANGE_DELAYED : String = "zoom_change_delayed"
[static] Used by the MegaZine class when its page scaling changes, fired after a small delay to make it easier to handle final scaling changes (i.e.
ZoomChangeEvent
Property detail
newZoomproperty
newZoom:Number  [read-only]

The new scale of the book's pages.

Implementation
    public function get newZoom():Number
oldZoomproperty 
oldZoom:Number  [read-only]

The old scale of the book's pages (before the event was triggered at all, i.e. before the first delay was triggered).

Implementation
    public function get oldZoom():Number
Constructor detail
ZoomChangeEvent()constructor
public function ZoomChangeEvent(type:String, oldZoom:Number, newZoom:Number, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new MegaZine load state change event.

Parameters
type:String — the type of the event, accessible as ZoomChangeEvent.type.
 
oldZoom:Number — the scale before the scale change took place, accessible as ZoomChangeEvent.oldZoom.
 
newZoom:Number — the scale after the scale change took place, accessible as ZoomChangeEvent.newZoom.
 
bubbles:Boolean (default = false) — determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
 
cancelable:Boolean (default = false) — determines whether the Event object can be canceled. The default values is false.
Constant detail
ZOOM_CHANGEconstant
public static const ZOOM_CHANGE:String = "zoom_change"

Used by the MegaZine class when its page scaling changes.

ZOOM_CHANGE_DELAYEDconstant 
public static const ZOOM_CHANGE_DELAYED:String = "zoom_change_delayed"

Used by the MegaZine class when its page scaling changes, fired after a small delay to make it easier to handle final scaling changes (i.e. when the user zooms multiple steps don't fire for each step, just the last).