Home

Downloads

FAQs

Sample Book

Features

Forum

 

What attributes can go in the <pages> tag of pages.xml?

Make sure you understand the structure of XML files first.

attribute default Comment
src none Path to the page content - can be JPG, PNG, SWF
thumb_src same as src Path to a thumbnail to use in the contents list. If not given the contents is generated by scaling the actual src.
hires_src same as src Path to hires version of the page - displayed when the page is clicked. Set this to DISABLED if you don't want page clicks to create a popup.
hires_width
hires_height
none Specifies the dimensions of the Hires page.
audioTrackId none audio track to play when the page is made visible see AudioTracks
audioVol none target volume to play track at.
fadeTrackId none id of any background track which should be faded down whilst the page is visible. This really only works if you use a single repeating background track.
fadeVol none 0-100 target volume of faded background sound. Volume is restored when you turn the page.
id none a text label for the page - it is up to you to make sure they are unique. Page Ids are better than page numbers especially when you add and remove pages (See ActionScript) The default page label (Idnn) is generated is none is specified.
canTear false Set to true if you want to be able to tear the page out of the book.
afterTear none The name of a function to run after tearing out a page. Upto 5 parameters are allowed e.g. afterTear="loadMovie,'pages/spread.swf',_root.topSpread". I've never used this but it is documented at the bottom of the readme.txt file.
isSpread false Set to true if the page is a spread (i.e. covers double page width)
bkgnd none path to book background image to use for this page.
fwdFlip true If set to false stops the book page from being turned forward - only useful on right hand pages. This feature allows you to provide mulitple routes through an interactive book.
bckFlip true If set to false stops the book page from being turned back - only useful on left hand pages. This feature allows you to provide mulitple routes through an interactive book.
preLoad false If set to true the page must be loaded before the book opens.
     

What child nodes can go inside the <page> </page> tags?

Child node comment
<keywords> Keywords are used to help searching for pages.
<param> Any number of parameters can be declared for a page
<hotspot> Defines hotspots for page regions. Useful for image pages, which cannot have buttons.