The startDrag function in AS3 is a little different from in AS2: you define a rectangle from the initial location that you’re starting the drag from rather than the absolute bounds like in AS2.
So the code looks like below:
import flash.geom.Rectangle; myMC.startDrag(false, new Rectangle(topX, topY, withToDrag, heightToDrag);
Tech Reference: AS3
Leave a Reply