LOGIN Don't have an account yet?   Register

Forgot password?
 
Magnifying Glass Effect

Magnifying Glass Effect screenshot

Preview:   Downloads: 8635

Posted on: Mon, Jul 27th 2009, 10:00

 

Magnifying Glass Effect - tips and tricks

Introduction: 

     This is a fully customizable Magnifying Glass Effect, with support for any image size (jpg, gif, png or swf). You can define the image path (image/swf of any size), the display area size as well as the lens size in the XML or HTML files (depending if you want to use the product in a flash file or html file).

     It is easy to use this product in your Flash projects or as an independent Flash Component in your html based website.

     If you want to use the component in a Flash file, importing it is as easy as moving some actionscript files around and dragging the movieclip containing the Magnifying Glass Effect in your Flash file.

     To edit the file you don't need any Flash experience, because all the settings are loaded from an external XML file, which you can edit with any text editor.

     The code is very well commented, written following the best OOP practices, and the downloaded file comes with all the assets used to create the Magnifying Glass Effect such as the PSD source file, the fla source file and the code.

 

Features:

1. Scalable lenses.
2. Scalable display area
3. Scalable image.

 

Folder structure:


     Please navigate to the deploy folder, inside the project folder. This folder contains all the files you need to upload to your server to have the Magnifying Glass Effect work.

 

     magnify/xml/settings.xml

     XML configuration file - This is where you make all changes to the look and feel of your Magnifying Glass Effect.


     js/swfobject.js

     Deconcept SWFObject is a small JavaScript file used for embedding Adobe Flash content. The script can detect the Flash plug-in in all major web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible.


     js/expressInstall.swf

     SWFObject has full support for the Adobe Flash Player Express Install feature. Using expressinstall, your users never have to leave your site to upgrade their Flash Player.

 

     preview.swf

     This is the component swf file which is embedded in your website.


     index.html

     HTML document used to embed the swf file. Please check the source code to see how the variables are passed to the swf file, using any text editor such as Notepad or Textedit.

 

 settings.xml structure: 

     Below you can see what each of the attributes in the XML file means:

 

<settings width="560"
height="420"
lensSize="200">

     Here you can define the component width, height, as well as the lens size.

 

<item image="images/image.jpg"/>

     Define the path to the preview image/swf file.

 

Flashvars:

     In the html file you can set some variables for the magnifying effect like dimensions (width and height), the path to the files if you choose to put them in another location rather than the same folder of course, and the path to the settings xml file.                        
     

flashvars.componentWidth = 560;
flashvars.componentHeight = 354;
			
flashvars.pathToFiles = "magnify/";
flashvars.settingsPath = "xml/settings.xml";  

 

Support:

     If you need any help using the product, please contact us at [email protected].

Similar flash components

Zoom Gallery

Zoom Gallery

If you ever wanted to display high quality images without taking the... read more


Flash XML Tooltip

Flash XML Tooltip

With this component you can set tooltips on top of your content,... read more


Flash Hit Area Map

Flash Hit Area Map

This component helps you set hot spot areas on top of your content,... read more


General Videos

  • How to buy?
    watch movie
  • Embed a Flash Component in your Flash Project
    watch movie
  • How to embed a Flash Component in the same HTML page twice?
    watch movie
  • How to embed two different Flash Components in the same HTML page?
    watch movie

Our recommendation

Zoom Pan Map Viewer

Zoom Pan Map Viewer

This flash component can be used for viewing high quality large images... read more


Showcase

Send us a link to the page you used this product on, and we'll post the link to your site on our blog if you customized it nicely.

Need support?

Support ticketGet a support ticket
read more

Share this

If you enjoyed this product, please consider sharing it via a social network, or leaving a comment. Thanks!