| Package | de.mightypirates.megazine.events |
| Class | public class ZoomChangeEvent |
| Inheritance | ZoomChangeEvent flash.events.Event |
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.
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
ZoomChangeEvent(type:String, oldZoom:Number, newZoom:Number, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new MegaZine load state change event.
| ZoomChangeEvent | ||
| Constant | Defined 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 | ||
| newZoom | property |
newZoom:Number [read-only]The new scale of the book's pages.
Implementation public function get newZoom():Number
| oldZoom | property |
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
| 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.
Parameterstype: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.
|
| ZOOM_CHANGE | constant |
public static const ZOOM_CHANGE:String = "zoom_change"Used by the MegaZine class when its page scaling changes.
| ZOOM_CHANGE_DELAYED | constant |
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).