| The component settings XML file is a usual text file of the following format:
<FlippingBook>
<width>600</width>
<height>400</height>
<scaleContent>true</scaleContent>
<firstPage>0</firstPage>
<alwaysOpened> false </alwaysOpened>
<autoFlip> 50 </autoFlip>
<flipOnClick> true </flipOnClick>
<staticShadowsDepth> 1 </staticShadowsDepth>
<dynamicShadowsDepth> 2 </dynamicShadowsDepth>
<moveSpeed> 2 </moveSpeed>
<closeSpeed> 3 </closeSpeed>
<flipSound>01.mp3</flipSound>
<pageBack> 0x1C90CB </pageBack>
<loadOnDemand> true </loadOnDemand>
<cachePages> true </cachePages>
<cacheSize> 10 </cacheSize>
<preloaderType> Progress Bar </preloaderType>
<pages>
<page>images/photo01.jpg</page>
<page>images/photo02.jpg</page>
<page>images/photo03.jpg</page>
<page>images/photo04.jpg</page>
<page>images/photo05.jpg</page>
<page>images/photo06.jpg</page>
</pages>
</FlippingBook>
The embedded XML analyzer of the component is case and odd space insensitive, so be accurate but not afraid of making a mistake. As can be seen, all the file information is contained in the <FlippingBook></FlippingBook> structure. This is the core description unit – do not modify it. This unit contains component parameter units the names and values of which are the same as those of the component parameters in the development environment.
The Width and Height parameters allow controlling object size on the stage. The general parameter value format is as follows:
<parameter name>parameter value</parameter name>
The only exception is the set of pages by the <pages></pages> unit. This unit contains the list of pages in the following form: <page>page path</page>. The order of pages is determined by the order of page source paths. Remember that the source data can be not only external photo files, but also external SWF files. |