|
||||||||||||||||||||||||||||
Welcome To NewFreeTemplates.com Flash Tutorials Area - Creating a Magnifying GlassThe aim of the tutorial is to learn how to create a magnifying glass using a very simple piece of code. You will also learn how to attach several Movie clips to the mouse, some move with the mouse and others move in the opposite direction to the mouse. You will also learn how to use masks in Flash MX. Example of a very smooth running magnifying glass
(Large file may take a moment to load). Step one: Creating the image you want to magnify Before you can start you will need something to magnify. This could be a bitmap image such as a Jpeg or Gif. It could also be a vector based image created with the typing or drawing tools in Flash (or in a Graphics program like Freehand, Illustrator, or CorelDraw). The vector based images are best because the file sizes are so small. Having said that they take more time to create as you have to draw every detail. I have taken the easy root and scanned a map using PhotoShop and then saved it as a Jpeg. Quick and easy but the files size is big: nearly 200kb. If I was concerned with the file size I could of imported the scanned picture into a Graphics program and re-created the file before I started to create my magnifying glass in Flash. I would expect the graphics file to be about 10 or 20kb (once imported to Flash) rather than 200kb. A major difference. Of course you can do this with a map but if you are using the magnifying glass on a photo, you have to stick to the Jpeg. The measurements of the image has to be quite large. Mine is 1200 pixels wide x 1000 pixels high. This is much taller and wider than most pictures that would be used on a web page (hence the 200KB). The reason for this is so that when magnified there is plenty of detail to look at. Or: Create your own image. For the tutorial I recommend that you stick to the same size: 1200 x 1000 pixels Step two: Setting up the Flash file
Step three: Preparing the Magnifying Glass
Step four: The Glass Now we will hide the big map, except for the glass area.
Step five: The Glass Rim
Step five: The Mouse Cursor - Removed Your magnifying glass should be ready to roll. Having said that there is just one addition that you may want: To make the standard arrow cursor disappear so that you can see the magnification detail better, place this code in any of the key frames in the time line:
Author: Phil
|
|
|||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
| All Rights Reserved 2007-2008 by NewFreeTemplates.com | ||||||||||||||||||||||||||||