## Custom Document Viewer Sample for External Viewer Output Format for Flash Documents

### Sample function:

This sample demonstrates creating a custom document viewer movie for External Viewer output format. It loads a document from a set of external SWF files and displays it. To create documents compatible with this viewer sample you need to use External Viewer output format (see http://print2flash.com/help/DesigningExternalDocumentViewer.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:

- extviewer.fla - sample source code;
- extviewer.swf - compiled sample Flash movie;
- FlashDoc.swf.swf, FlashDoc_part2.swf - the 2 files representing a single 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 extviewer.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 External Viewer output format (see above). Then you need to open the sample source file, open Actions window and modify docURL variable at the top of the script to reflect the URL of your document main file. (In a more realistic case you need to communicate this parameter 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