Search Tutorials
The Magnifying Glass (Part 1)Create the movie clipYour overlay or magnifying glass correlates to your mask just like the thumbnail correlates to the larger movie clip to be viewed.Create a new movie clip with a rectangle in it that is 1/5th of the mask. This will be easy since the mask and the large clip are the same size. That means this is the same size as the thumbnail (120x88). Use the mixer or properties panel to put an alpha effect on and it will be see through. Finally, make sure this object is at 0,0. Create the drag effect[Still in the magnifying glass movie clip] Create a transparent button and place it on the top layer of the clip. Register it at 0,0 inside the movie clip (i.e. position it to 0,0). Use the following code for the drag effect...
on (press) {
// start the drag
startDrag ("_root.mag");
// play the clip to activate the code in frame 2
play ();
mouse_down = "true";
}
on (release, releaseOutside) {
// stop the drag
stopDrag ();
// stop the clip to save some processing
stop ();
mouse_down = "false";
}
This code assumes we've named our movie clip 'mag'...we'll do that in a moment. It also sets something up we're about to do in the frames clips.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|