In this project, we learned how to use "Masking" which hides a piece of the image or stage. To do this, we had to import an image then create another layer containing a rectangle which you overlay with the image. On the layer with the rectangle, we had to right click on it and choose "Mask". The underlying layer then was masked and when you pressed CTRL + ENTER, you could see that the part the rectangle covered is invisible. Upon learning this, we went even further and made it interactive by using Script. We went to File>Publish Settings>Flash then change the Script to "2.0". After you turned the rectangle into a "Movie Clip", you right click it and go to "Actions". From there you then go to ActionScript 2.0 Classes>Movie>Movie Clip>Methods>startDrag. I forgot that we had to turn the "Script Assist" on. From there we put "this" in the Object box and "True" in the [Lock Center] box. Then when you pressed CTRL + ENTER and hover your mouse over the image, the rectangle should mask and make that space disappear. I actually enjoyed this project. It was simple and very fun to learn. I may want to make more of these.
No comments:
Post a Comment