.flash bbox=600x500 version=6 fps=10 name="bag.swf" compress background=#663333 .edittext log width=480 height=200 text="Simple drag example AS2" .put log 160 40 .action: var m =_root ; with(m) { createEmptyMovieClip("r_mc",1); with(r_mc) { lineStyle(1); moveTo(50,50); beginFill(0xFF0000); lineTo(100,50); lineTo(100,100); lineTo(50,100); endFill(); curveTo(75,-50,100,100); } } r_mc.onPress =function (){ this.startDrag(); }; r_mc.onRelease =function (){ this.stopDrag(); }; /* m.onEnterFrame=function () { // mouse x & y displayed m.log.text=m._xmouse+","+m._ymouse; }; */ .end .end