Chapter

From MegaZine3
Jump to: navigation, search

A chapter defines a section of a book. It may override basic settings of the book, such as the background color of pages. A chapter can only begin on an odd page (page on the right) and must end on an even page (page on the left). If a chapter is defined to start on an even page and/or end on an odd page, blank pages are automatically inserted at the beginning or the end of a chapter.

Contents

Attributes

Display-related setting 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.

Behavior-related setting dragarea

A comma separated list of the areas which should be clickable by the user to trigger page turns or drags.

The top and bottom areas are the top and bottom page corners, being squares of the size dragrange x dragrange. The middle is the remaining space between those squares, with a width of dragrange.

This attribute is inherited by pages.

Behavior-related setting dragrange

The distance to the border inside which auto dragging starts (when the user moves the cursor near a corner), and clicking triggers a page turn or drag.

Display-related setting 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.

The folding effect in the middle of two pages.

Display-related setting 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.

Display-related setting lighting

allows a more finegrained control of which „light“ effects to use on pages: highlights and / or shadows, or neither. Default is „shadows, highlights“. Can be set the whole book and individually for pages also.

{{Attribute | h= == | name = [[Im

Display-related setting pageheight

The default page height for pages in the chapter.

The restriction for custom page sizes is, that they have to be smaller (or the same size) as defined in the book tag.

This attribute is inherited by pages (without the page prefix).

Display-related setting pagewidth

The default page width for pages in the chapter.

The restriction for custom page sizes is, that they have to be smaller (or the same size) as defined in the book tag.

This attribute is inherited by pages (without the page prefix).

Display-related setting stiffskew

This controls the tilt of page@stiff pages, where lower values lead to a "flatter" turn, higher values to a "steeper" one.

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
Personal tools
Namespaces
Variants
Actions
Navigation
documentation
miscellaneous
Toolbox