If you had wanted to troubleshoot further, the code I had used is bellow. Most of this came from your earlier thread that I hopped onto, the only real difference was I was going horizontal. the handle is 9.6 wide. Thought that maybe you could quick throw this into a dummy movie and see if you got the same offset. Like I said I'm getting no offset whatsoever. Works perfect. var handleDistance = 4.8; var bounds = {x:24 , y:542, width: 598, height:0}; var sliderBoundary = new createjs.Shape(); sliderBoundary.graphics.beginStroke("#999") .setStrokeStyle(2) .drawRect(bounds.x, bounds.y, bounds.width, bounds.height); this.stage.addChild(sliderBoundary); paramF(this.handle, 19, 0, 630, this.circuit.totalFrames-1); this.handle.addEventListener("pressmove", fl_MouseClickHandler_2.bind(this)); function fl_MouseClickHandler_2(evt){ var p=this.globalToLocal(evt.stageX, evt.stageY); evt.currentTarget.x = Math.max(bounds.x + handleDistance, Math.min(bounds.x + bounds.width - handleDistance, p.x)); this.circuit.gotoAndStop(Math.round(this.handle.m*this.handle.x+this.handle.b)); } this.handle.y = 390; this.handle.x = (bounds.x + bounds.width)/ 2; this.stage.addEventListener("tick", moveslider.bind(this)); function moveslider(){ this.handle.x=(this.circuit.currentFrame-this.handle.b)/this.handle.m; } function paramF(mc,x1,y1,x2,y2){ mc.m=(y1-y2)/(x1-x2); mc.b=y1-mc.m*x1 }
... View more