Chapter
From MegaZine3
A chapter defines a section of a book. It may override basic settings of the book, such as the background color of pages.
Contents |
[edit] Attributes
bgcolor
- Type: Integer
- Overrides:
book@bgcolor
The default background color for pages in the chapter. This refers to the base color a page has, if there are no elements on the page obscuring the actual page itself.
Can be an ARGB or RGB value. While the number may be in any format parseable by ActionScript, it is recommended for readability's sake to use a hexadecimal formatted value. Hexadecimal values are marked by prefixing them with 0x.
Note that using many transparent pages next to each other, causing a deep level of transparency and thus many visible pages, can reduce performance significantly (and is therefore not recommended on a book or chapter level).
A value of 0x000000 (or just 0) is transparent, not black. If you want black, use 0xFF000000, i.e. use the ARGB format (alpha-red-green-blue) instead of RGB (red-green-blue).
This attribute is inherited by pages.
edgecolor
- Type: Integer
- Overrides:
book@edgecolor
The color used when painting a page's edge for the book edges. This defaults to the color of the page itself.
This attribute is inherited by pages.
foldfx
- Type: Number
- Overrides:
book@foldfx
The default alpha value of folding effects for pages in this chapter. If set to 0 folding effects are turned off, 1 means 100% opaque. Folding effects refer to a shadow inbetween two pages, simulating a curvature of the pages.
[edit] Child Nodes
Chapters may have page child nodes, each one defining a page side. Therefore, each chapter has to have an even number of page child nodes / page sides, thus having only "physical" pages.
| MegaZine3 Core-related articles | |
|---|---|
| Book elements | Book · Chapter · Page · Spreadpage |
| Page elements | Area · GIF · Image · Navigation · Sound · Text · Video |

