Creating a Magnifying Glass - Step Five: The Glass Rim
Posted by : PhilS on Aug 01, 2008
- Create a new Layer above your Circle Layer called: Glass Rim

**Note**: It is important that the glass rim is in its own layer, otherwise the mask may fail to work correctly or the rim may not be visible.
- If you cut the outside stroke from the circle above (step 4.3) it should still be in the computer memory. Go to: Edit - Paste
If you do not have the rim of the circle in the memory you will need to draw one. Remember to delete the centre or you will not see the magnifying glass underneath!
- Right click on the rim and convert it to a Symbol. Name: Rim Behavior: Movie Clip
- Give the circle a Instance name: myRim
Attach the following code onto the movie clip:
onClipEvent (enterFrame) { _root.myRim._x = (_root._xmouse); _root.myRim._y = (_root._ymouse); }
Note: You cannot use the following code:
onClipEvent (enterFrame) { startDrag(""); }
With *startDrag *you can only attach one object to the mouse, and as we need to attach the rim and the mask *startDrag *will not work.

no comment
Add comment