this.prototype.bounding = new kinetic.shape(function () { var context = this.getcontext(); context.beginpath(); context.arc(0, 0, radius, 0, 2 * math.pi, false); context.fillstyle = color; context.fill(); },"perspectivecar"); this.prototype.bounding.vx = 0; this.prototype.bounding.vy = 0; this.prototype.bounding.x = positionx; this.prototype.bounding.y = positiony; this.prototype.bounding.on("mousedown", function () { alert('hi'); });
hi, i'm using kineticjs 3.6 version. mouse events not work here. don't know reason. can u me.
thanks vijay
it doesn't work "click" ?
this.prototype.bounding.on("click", function () { alert('hi'); });
Comments
Post a Comment