1 / 11

MAKE YOUR FLASH MASKS DRAGGABLE

MAKE YOUR FLASH MASKS DRAGGABLE. 1. Create a new Flash document 400x300 dimensions. Select a gray for the background color. 2 . Insert two new layers. Name them background, mask and actions. Actions layer should be in top and background in bottom.

noura
Download Presentation

MAKE YOUR FLASH MASKS DRAGGABLE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MAKE YOUR FLASH MASKS DRAGGABLE

  2. 1. Create a new Flash document 400x300 dimensions. Select a gray for the background color.

  3. 2. Insert two new layers. Name them background, mask and actions. Actions layer should be in top and background in bottom.

  4. 3. In the first frame of the background layer insert the picture you want (or take the one below): go to File>>Import>>Import to Stage (Ctrl+R). Make sure the picture has 400x300 dimensions. 

  5. 4. Select the picture and go to Modify>>Convert to Symbol (F8). Choose MovieClip and registration point to center and put bgMC as name. Then go to Properties panel and give it and instance name of bg_mc.

  6. 5. Now go to the first frame of the mask layer and draw an 100x100 circle (hold pressed the Shift key to draw a perfect circle) without stroke. Convert it to a MovieClip ( Modify>>Convert to Symbol or F8).

  7. At name field put maskMC, choose MovieClip as behavior and choose center for registration point. In the Properties Inspector give it an instance name of mask_mc.

  8. 6. In the first frame of the actions layer put the following ActionScript code:

  9. bg_mc.setMask(mask_mc);mask_mc.onPress = function(){startDrag(this, false, 50,50, 350, 250)}mask_mc.onRelease = mask_mc.onReleaseOutside = function(){this.stopDrag()}

  10. 7. Test your movie (Ctrl+Enter) and see the result. 

More Related