This article by the Chinese tutorial net Breeze Glimpse original, reprint please keep this information!
Move the mouse over the screen to see the effect:
Click here to download the source file
First, create a new 300*400, background color for the black Flash document, select "File-Import-Import to stage" in layer one, and import a picture in advance, set the height and width to 400x300,x and y to 0 in the picture properties.
Figure 1
Figure 2
Second, press Ctrl+f8 to create a new graphic component, in the component to draw a circle, the size of random.
Figure 3
Figure 4
Third, in the return scene, create a new layer, press Ctrl+l to drag component 1 to the scene (that is, the component that just drew the circle), click the Circle, name it "Shan" (without quotes) in the property palette, and right-click in Figure 2 to select the mask.
Figure 5
Figure 6
Figure 7
Create a new layer 3, press F9 to open the action surface version, write code StartDrag ("Shan", true); 。
Figure 8
Well, press Ctrl+enter to test it.