Magnifier Glass Addon Documentation  
   
   
    Purchase and Installation 
 
Once you purchase the component, the link to the download file will be sent to you by e-mail. This will be a zip archive with the component files, the documentation and a set of flip sounds. Download this archive to your computer, unzip it and run the Magnifier.mxp file. This will install the component on your computer. If you are not currently running the FLASH, close and restart it. The next time the environment is started the component will appear in the components panel and be ready to work.


   
    Requirements
 
Adobe (Macromedia) Flash 8 or Flash MX2004 or Flash CS3 with our Flash Component installed


   
    How It Works
 
The component is invisible to the user by default. To make the magnifier glass visible, the show() ActionScript method should be used; to make the component invisible the Close Window button should be clicked or the component’s hide() ActionScript method should be called. When calling the show() method: the magnifier glass loads copies of the original page files or the enlarged versions of the pages (if the enlarged versions are defined by the developer). When moving the magnifier glass over the book, an imitation of the page contents occurs. During the operation of the component the book becomes inactive (user commands are ignored right up until the magnifier glass is closed).
   
    Component Parameters
 
Hide

A Boolean parameter. Determines whether or not the magnifier glass will be visible when the component starts up. The component is not visible by default.


Default Magnification
Determines the initial zooming factor of the page content. Default factor is x2


Maximum Magnification
Determines the maximum zooming factor of the page content. The user may change the factor of magnification from the initial to the maximum value. Maximum factor by default is x3


Book Instance Name
Instance Name of the book component. This parameter is obligatory and has no default value.


Background Color
Color of the page background field. This color will be used to imitate the book’s background. Default value: #CCCCCC


Label
Text of the window header. Default value: Close Up View


Large Version ID
An identifier that can be used to set the URL of large page versions in the Book Pages parameter of the book component.






    Defining files for zooming in XML file
 

To do this type the path to the file with the enlarged version in the page description tag:

<page zoom="images/page01_larger.jpg">images/page01.jpg</page>

In this case, the file «images/page01_larger.jpg» will be used for zooming the page «images/page01.jpg».




    Component API
 
Component methods
  • show()
    Makes the magnifier glass visible.

    example:
    glassInstanceName.show();
    instanceName is the name of component instance on the stage.

  • hide ( )
    Makes the magnifier glass invisible.

    example:
    glassInstanceName.hide();