一、新建一个300*400,背景色为黑色的FLASH文档,在第一层选择“文件——导入——导入到舞台”导入一张事先准箅好的图片,在图片属性中把高和宽设为400*300,X和Y为0。


二、按CTRL+F8新建一个图形元件,在元件中画一个圆,大小随意。


三、返回场景中,新建一个新图层,按CTRL+L把元件1拖到场景中(也就是刚才画圆的那个元件),点下这个圆,在属性面版中把它命名为“shan”(不含引号),在图屋2右击选择遮罩。



四、再新建一个图层3,按F9打开动作面版,写上代码 startDrag("shan",true); 。

好了,按CTRL+Enter测试下吧。