Search  

MAGNIFIER LENS

HomeBrowse CategoriesFlashApplications and UtilitiesUtilitiesMagnifier lens

The magnifier doesn’t need more than 3 lines of code to make it work and you can insert it easily into your projects because it doesn’t have any library items and doesn’t use any reference to _root – it makes everything from code. You just have to set the parameters, and it will do the rest.

The parameters can be either into an xml, or just typed into the code and recompiled.

Parameters you can set:
  • scale (in percent – default is: magnify to 150%)
  • lens radius (in pixles)
  • image path (or movieclip linkage name)
  • an optional second image path (or mc linkage name)

It works with both external images and library simbols(movieclips).

It has 2 modes:
  • Scale mode – where you only set an image and that image is scaled to produce the magnifing effect
  • Double Image mode – where you set 2 images with the EXACT same aspect ratio (usually the same image just in different resolutions)
You can create different effects, like:
  • magnifier for different products
  • magnifier for a map for example
  • xray machine – for example you could have a building and see the people inside this way, or for an anatomy study or something…




Click here to see more of my files

Posted 10 months ago

Very useful thing!

Nice work alexandrup ;)

Posted 10 months ago

Thanks! This is my first post on flashden. It’s very nice to be appreciated.

Posted 10 months ago

Nice work. Am I right to think that this uses a mask to define the round shape? And that the mask could be any shape?

Posted 10 months ago

Yes Simon, you’re spot on! It does use a shape as a mask, and that could be any shape. I used a circle because it resembles an actual magnifier lens. (And it’s easy to draw it from code :P)

Posted 10 months ago

Why is this one $6

and this Magnifier $4

http://www.flashden.net/item/zoom-magnifying-glass/3468

Posted 10 months ago

Probably because it adds some functionality like dinamic loading from xml without touching your .fla file; you can include it in your projects without any problems, it doesn’t use any library items; it doesn’t use a fixed size, it just takes the size of the original image and uses that – i used here an 590×300 image because of the requirement, but it can just as well be any other size;

When i made it, i had especially in my mind dynamic projects, thus it has those 2 ways of loading data (xml, and directly from API (maybe someone would like to use Flash Remoting or something) – or just hardcode some values and recompile) – it’s useful and simple to use for both dynamic complex projects, as well as simple static ones.

Posted 10 months ago

Gread work! I really like it!

Posted 10 months ago

Nice work alexandrup! Is the magnifying glass drawn by the Flash Drawing API ? Cause you said it doesn’t contain any library items.

BTW : Welcome to flashden (I’m new too :))

Posted 10 months ago

Thanks DaDog! Yes, I use Flash Drawing API – curveTo(...

Posted 10 months ago

Hey! Nicely done. Will this work with AS3 ? In other words, if this has been written in AS2 , do you know if I will be able to generate a swf and import this into a flash swf written in AS3 ? Any insight is greatly appreciated.

Posted 7 months ago

It won’t work, sorry :(

Posted 7 months ago

The dynamic loading is exactly what I have been looking for… many clients want to be able to update their images themselves. Thank you for good instructions on customizing and for explaining the AS and xml. I’m a designer and I learned a little more about code through your instructions. It really saved me time in tweaking it to my needs compared to another item purchased previously at Flash Den. Nice job.

Posted 4 months ago

Thank you MCGD !

Posted 4 months ago

Hey Alexandrup

I have an xml driven, pageflip animation used for an online magazine. Can this magnifier be incorporated into this file? It would be useful for reading the articles in the magazine.

Let me know and I’ll purchase this.

Thanks Harley30329

Posted 2 months ago

Hey,

Yes, it can be inserted in any flash project, as well as it can be used as a standalone app. All the necessary instructions are contained inside the archive.

Posted 2 months ago