Learn Flash: Magnifying Glass

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Flash - Creating a Magnifying Glass

 

Free Flash Tutorial


Step 5    <<   Previous      Intro   1   2   3   4   5   6     Next   >>       >>   Webwasp Mates

 

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.

 

         

Step 5    <<   Previous      Intro   1   2   3   4   5   6     Next   >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.