Packagede.mightypirates.megazine.events
Classpublic class MegaZineEvent
InheritanceMegaZineEvent Inheritance flash.events.Event

Event type used by megazine.



Public Properties
 PropertyDefined by
  instant : Boolean
[read-only] Instant page turn or not.
MegaZineEvent
  leftToRight : Boolean
[read-only] The page's turning direction.
MegaZineEvent
  message : String
[read-only] The message that was logged.
MegaZineEvent
  page : int
[read-only] The page changed to when firing this event.
MegaZineEvent
  prevstate : String
[read-only] The state prior to the state change when used for status change events.
MegaZineEvent
  state : String
[read-only] The state when firing this event when used for status change events.
MegaZineEvent
Public Methods
 MethodDefined by
  
MegaZineEvent(name:String, _page:int = 0, _newstate:String = "", _prevstate:String = "", _ltr:Boolean = false, _instant:Boolean = false)
Creates a new megazine event.
MegaZineEvent
Public Constants
 ConstantDefined by
  DRAGAREA_ENTER : String = "dragarea_enter"
[static] Event dispatched when the cursor enters the area where clicking triggers a page turn or if keeping the mouse button down a drag.
MegaZineEvent
  DRAGAREA_LEAVE : String = "dragarea_leave"
[static] Event dispatched when the cursor leaves the area where clicking triggers a page turn or if keeping the mouse button down a drag.
MegaZineEvent
  ELEMENT_COMPLETE : String = "element_complete"
[static] Event dispatched when a child element of this page completes initializing.
MegaZineEvent
  ELEMENT_INIT : String = "element_init"
[static] Event dispatched when a child element of this page completes initializing.
MegaZineEvent
  FLIP_STATUS_CHANGE : String = "flip_status_change"
[static] Dispatched when the page turning status changes.
MegaZineEvent
  INVISIBLE_EVEN : String = "invisible_even"
[static] Even page becomes invisible.
MegaZineEvent
  INVISIBLE_ODD : String = "invisible_odd"
[static] Odd page becomes invisible.
MegaZineEvent
  LIBRARY_COMPLETE : String = "library_complete"
[static] Dispatched when the library was loaded successfully.
MegaZineEvent
  LIBRARY_ERROR : String = "library_error"
[static] Dispatched when there is an error while loading the library.
MegaZineEvent
  MUTE : String = "mute"
[static] Dispatched to inform elements to mute themselves.
MegaZineEvent
  PAGE_CHANGE : String = "page_change"
[static] Dispatched when the current page changes.
MegaZineEvent
  PAGE_COMPLETE : String = "page_complete"
[static] Event dispatched when a page completes loading its elements.
MegaZineEvent
  PASSWORD_CORRECT : String = "password_correct"
[static] Dispatched when the correct password is entered in the password form.
MegaZineEvent
  SLIDE_START : String = "slide_start"
[static] Dispatched when slideshow starts.
MegaZineEvent
  SLIDE_STOP : String = "slide_stop"
[static] Dispatched when slideshow stops.
MegaZineEvent
  STATUS_CHANGE : String = "status_change"
[static] Dispatched when the status changes.
MegaZineEvent
  UNMUTE : String = "unmute"
[static] Dispatched to inform elements to unmute themselves.
MegaZineEvent
  VISIBLE_EVEN : String = "visible_even"
[static] Dispatched page becomes visible.
MegaZineEvent
  VISIBLE_ODD : String = "visible_odd"
[static] Odd page becomes visible.
MegaZineEvent
  ZOOM_CHANGED : String = "zoom_changed"
[static] Navigated to another page via zoom.
MegaZineEvent
  ZOOM_CLOSED : String = "zoom_closed"
[static] Zoom's closed.
MegaZineEvent
  ZOOM_STATUS_CHANGE : String = "zoom_status_change"
[static] Zoom state changed (between opened or closed).
MegaZineEvent
Property detail
instantproperty
instant:Boolean  [read-only]

Instant page turn or not. Only used for page change events.

Implementation
    public function get instant():Boolean
leftToRightproperty 
leftToRight:Boolean  [read-only]

The page's turning direction. Only used for page status change events.

Implementation
    public function get leftToRight():Boolean
messageproperty 
message:String  [read-only]

The message that was logged. Only used for message events.

Implementation
    public function get message():String
pageproperty 
page:int  [read-only]

The page changed to when firing this event. Only used for page change events.

Implementation
    public function get page():int
prevstateproperty 
prevstate:String  [read-only]

The state prior to the state change when used for status change events. The previous loading state when firing this event when used for page completion events.

Implementation
    public function get prevstate():String
stateproperty 
state:String  [read-only]

The state when firing this event when used for status change events. The loading state when firing this event when used for page completion events.

Implementation
    public function get state():String
Constructor detail
MegaZineEvent()constructor
public function MegaZineEvent(name:String, _page:int = 0, _newstate:String = "", _prevstate:String = "", _ltr:Boolean = false, _instant:Boolean = false)

Creates a new megazine event.

Parameters
name:String — The type of the event
 
_page:int (default = 0) — The current page, only used for page change events.
 
_newstate:String (default = "") — The message that was logged or the new megazine state, only used for message events or state change events, respectively.
 
_prevstate:String (default = "") — The previous state before changing to this one (only for status change)
 
_ltr:Boolean (default = false)
 
_instant:Boolean (default = false)
Constant detail
DRAGAREA_ENTERconstant
public static const DRAGAREA_ENTER:String = "dragarea_enter"

Event dispatched when the cursor enters the area where clicking triggers a page turn or if keeping the mouse button down a drag.

DRAGAREA_LEAVEconstant 
public static const DRAGAREA_LEAVE:String = "dragarea_leave"

Event dispatched when the cursor leaves the area where clicking triggers a page turn or if keeping the mouse button down a drag.

ELEMENT_COMPLETEconstant 
public static const ELEMENT_COMPLETE:String = "element_complete"

Event dispatched when a child element of this page completes initializing.

ELEMENT_INITconstant 
public static const ELEMENT_INIT:String = "element_init"

Event dispatched when a child element of this page completes initializing.

FLIP_STATUS_CHANGEconstant 
public static const FLIP_STATUS_CHANGE:String = "flip_status_change"

Dispatched when the page turning status changes.

INVISIBLE_EVENconstant 
public static const INVISIBLE_EVEN:String = "invisible_even"

Even page becomes invisible.

INVISIBLE_ODDconstant 
public static const INVISIBLE_ODD:String = "invisible_odd"

Odd page becomes invisible.

LIBRARY_COMPLETEconstant 
public static const LIBRARY_COMPLETE:String = "library_complete"

Dispatched when the library was loaded successfully.

LIBRARY_ERRORconstant 
public static const LIBRARY_ERROR:String = "library_error"

Dispatched when there is an error while loading the library.

MUTEconstant 
public static const MUTE:String = "mute"

Dispatched to inform elements to mute themselves.

PAGE_CHANGEconstant 
public static const PAGE_CHANGE:String = "page_change"

Dispatched when the current page changes.

PAGE_COMPLETEconstant 
public static const PAGE_COMPLETE:String = "page_complete"

Event dispatched when a page completes loading its elements.

PASSWORD_CORRECTconstant 
public static const PASSWORD_CORRECT:String = "password_correct"

Dispatched when the correct password is entered in the password form.

SLIDE_STARTconstant 
public static const SLIDE_START:String = "slide_start"

Dispatched when slideshow starts.

SLIDE_STOPconstant 
public static const SLIDE_STOP:String = "slide_stop"

Dispatched when slideshow stops.

STATUS_CHANGEconstant 
public static const STATUS_CHANGE:String = "status_change"

Dispatched when the status changes.

UNMUTEconstant 
public static const UNMUTE:String = "unmute"

Dispatched to inform elements to unmute themselves.

VISIBLE_EVENconstant 
public static const VISIBLE_EVEN:String = "visible_even"

Dispatched page becomes visible.

VISIBLE_ODDconstant 
public static const VISIBLE_ODD:String = "visible_odd"

Odd page becomes visible.

ZOOM_CHANGEDconstant 
public static const ZOOM_CHANGED:String = "zoom_changed"

Navigated to another page via zoom. The page attribute of the event object will be the page of the element that corresponds to the image shown in zoom mode.

ZOOM_CLOSEDconstant 
public static const ZOOM_CLOSED:String = "zoom_closed"

Zoom's closed.

ZOOM_STATUS_CHANGEconstant 
public static const ZOOM_STATUS_CHANGE:String = "zoom_status_change"

Zoom state changed (between opened or closed). The page attribute of the event object will be the page of the element that corresponds to the image shown in zoom mode when opening the zoom.