## Document Viewer Sample for Single File per Page Output Format for Flash Documents

### Sample function:

This sample demonstrates creating a document viewer movie that loads individual document pages from external SWF files and displays the document. Such individual page files can be created using "Single file per page" output format (see http://print2flash.com/help/DesigningDocumentViewerSingleFilePerPage.php help topic). The sample may be used as a base for creation of your own Print2Flash document viewer. The sample uses ActionScript 3.

### Installation instructions:

Just unpack the sample folder to disk.

### Usage instructions:

The sample contains the following files:

- extloader.fla - sample source code;
- extloader.swf - compiled sample Flash movie;
- page_1.swf, page_2.swf, ... , page_7.swf, - the 7 page files of the Print2Flash document that is used in the sample.

To launch the sample just open the sample Flash movie either by double clicking it in Windows Explorer or by right clicking it and choosing "Open With..." and then - Internet Explorer (if you do not see Internet Explorer there, select Choose Program and then - Internet Explorer).

To modify the sample, you need to open extloader.fla file in Adobe Flash CS, introduce necessary modifications and recompile the movie.

If you want to display your own document using this sample, you need to create your document using "Single file per page" mode (see above). Then you need to open the sample source file, open Actions window and modify totalPages and fileNamePrefix variables at the top of the script to reflect the number of pages in your document and the prefix of the document name respectively. (In a more realistic case you need to communicate these parameters to your viewer movie using, for example, FlashVars HTML parameter.) After that you may recompile and launch the sample.

Copyright (C) Print2Flash Software. All rights reserved | www.print2flash.com