| Package | com.rubenswieringa.book |
| Class | public class BookEvent |
| Inheritance | BookEvent flash.events.Event |
See also
| Property | Defined by | ||
|---|---|---|---|
| book : Book
[read-only]
Returns the Book instance associated with this BookEvent (actually the PageManager instance casted to a Book type).
| BookEvent | ||
| page : Page
[read-only]
Returns the Page instance associated with this BookEvent.
| BookEvent | ||
| pageManager : PageManager
[read-only]
Returns the PageManager instance associated with this BookEvent.
| BookEvent | ||
| Method | Defined by | ||
|---|---|---|---|
|
BookEvent(type:String, book:PageManager, page:Page = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a BookEvent object to pass as a parameter to event listeners.
| BookEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
| BOOK_CLOSED : String = "bookClosed" [static]
Dispatched at the same time as the page-turned, when the Book was previously open, and the first or last Page was flipped successfully.
| BookEvent | ||
| BOOK_OPENED : String = "bookOpened" [static]
Dispatched at the same time as the page-turned, when the Book was previously closed, and the first or last Page was flipped successfully.
| BookEvent | ||
| CONTENT_CHANGED : String = "contentChanged" [static]
Dispatched when a page is added to or removed from the PageManager.
| BookEvent | ||
| HOVER_ENDING : String = "hoverEnding" [static]
Dispatched when the corner of a page is rolled out of with the mouse.
| BookEvent | ||
| HOVER_FINISHED : String = "hoverFinished" [static]
Dispatched when a page falls back in place after being rolled over with the mouse.
| BookEvent | ||
| HOVER_STARTED : String = "hoverStarted" [static]
Dispatched when the corner of a page is rolled over with the mouse.
| BookEvent | ||
| NOT_FLIPPING : String = "notFlipping" [static]
Book state indicating that no pageflip is currently being executed.
| BookEvent | ||
| PAGEFLIP_ENDING : String = "pageflipEnding" [static]
Dispatched when the corner of a page is released.
| BookEvent | ||
| PAGEFLIP_FINISHED : String = "pageflipFinished" [static]
Dispatched when a page falls back in place after being flipped.
| BookEvent | ||
| PAGEFLIP_STARTED : String = "pageflipStarted" [static]
Dispatched when the the corner of a page is picked up.
| BookEvent | ||
| PAGE_NOT_TURNED : String = "pageNotTurned" [static]
Dispatched when a pageflip is not successful.
| BookEvent | ||
| PAGE_TORN : String = "pageTorn" [static]
Dispatched when a Page is torn out of its Book.
| BookEvent | ||
| PAGE_TURNED : String = "pageTurned" [static]
Dispatched when a pageflip is successful.
| BookEvent | ||
| STATUS_CHANGED : String = "statusChanged" [static]
Dispatched when the status of the Book changes.
| BookEvent | ||
| book | property |
book:Book [read-only]Returns the Book instance associated with this BookEvent (actually the PageManager instance casted to a Book type).
Implementation public function get book():Book
See also
| page | property |
page:Page [read-only]Returns the Page instance associated with this BookEvent.
Implementation public function get page():Page
| pageManager | property |
pageManager:PageManager [read-only]Returns the PageManager instance associated with this BookEvent.
Implementation public function get pageManager():PageManager
See also
| BookEvent | () | constructor |
public function BookEvent(type:String, book:PageManager, page:Page = null, bubbles:Boolean = false, cancelable:Boolean = false)Creates a BookEvent object to pass as a parameter to event listeners.
Parameterstype:String — The type of the event, accessible as BookEvent.type.
|
|
book:PageManager — Determines whether the BookEvent object participates in the bubbling stage of the event flow.
|
|
page:Page (default = null) — Determines whether the BookEvent object can be canceled.
|
|
bubbles:Boolean (default = false) |
|
cancelable:Boolean (default = false) |
| BOOK_CLOSED | constant |
public static const BOOK_CLOSED:String = "bookClosed"Dispatched at the same time as the page-turned, when the Book was previously open, and the first or last Page was flipped successfully.
See also
| BOOK_OPENED | constant |
public static const BOOK_OPENED:String = "bookOpened"Dispatched at the same time as the page-turned, when the Book was previously closed, and the first or last Page was flipped successfully.
See also
| CONTENT_CHANGED | constant |
public static const CONTENT_CHANGED:String = "contentChanged"Dispatched when a page is added to or removed from the PageManager.
See also
| CURRENTPAGE_CHANGED | constant |
limited static const CURRENTPAGE_CHANGED:String = "currentPageChanged"Dispatched when the value of a PageManager its currentPage property changes.
See also
| HOVER_ENDING | constant |
public static const HOVER_ENDING:String = "hoverEnding"Dispatched when the corner of a page is rolled out of with the mouse. Note that this Event is dispatched just before the page starts falling back in place. Only applicable if the hover property of the accompanying Book instance is set to true.
See also
| HOVER_FINISHED | constant |
public static const HOVER_FINISHED:String = "hoverFinished"Dispatched when a page falls back in place after being rolled over with the mouse. Only applicable if the hover property of the accompanying Book instance is set to true.
See also
| HOVER_STARTED | constant |
public static const HOVER_STARTED:String = "hoverStarted"Dispatched when the corner of a page is rolled over with the mouse. Only applicable if the hover property of the accompanying Book instance is set to true.
See also
| NOT_FLIPPING | constant |
public static const NOT_FLIPPING:String = "notFlipping"Book state indicating that no pageflip is currently being executed.
| PAGEFLIP_ENDING | constant |
public static const PAGEFLIP_ENDING:String = "pageflipEnding"Dispatched when the corner of a page is released. Note that this Event is dispatched just before the page starts falling back in place.
See also
| PAGEFLIP_FINISHED | constant |
public static const PAGEFLIP_FINISHED:String = "pageflipFinished"Dispatched when a page falls back in place after being flipped. This Event is dispatched regardless of whether or not the page has been turned, or has fallen back into its original position.
See also
| PAGEFLIP_STARTED | constant |
public static const PAGEFLIP_STARTED:String = "pageflipStarted"Dispatched when the the corner of a page is picked up.
| PAGE_NOT_TURNED | constant |
public static const PAGE_NOT_TURNED:String = "pageNotTurned"Dispatched when a pageflip is not successful.
See also
| PAGE_TORN | constant |
public static const PAGE_TORN:String = "pageTorn"Dispatched when a Page is torn out of its Book.
| PAGE_TURNED | constant |
public static const PAGE_TURNED:String = "pageTurned"Dispatched when a pageflip is successful.
See also
| STATUS_CHANGED | constant |
public static const STATUS_CHANGED:String = "statusChanged"Dispatched when the status of the Book changes.
See also