创建一个元件,【链接】为actionscript导出,标识符为'mc' .
在主场景第一帧输入如下代码;
attachMovie("mc", "mc", _root.getNextHighestDepth(), {_x:100, _y:100});
_root.createEmptyMovieClip("elastic", _root.getNextHighestDepth());
mc.onPress = function() {
startDrag(this);
};
mc.onRelease = function() {
stopDrag();
};
好了