.

Step Five: The Glass Rim

1. 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.

2. 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!

3. Right click on the rim and convert it to a Symbol.
Name: Rim
Behavior: Movie Clip
4. Give the circle a Instance name: myRim
5. 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 comments found ! Click here to be the first adding comments for this tutorial!