ciao a tutti
ho questo codice che se pubblico in versione 5 non funziona.
E' possibile convertirlo in modo che funzioni?
ciao e grazie


disegna.onMouseMove = function() {
this.moveTo(this._xmouse, this._ymouse);
oldX = this._xmouse;
oldY = this._ymouse;
this.onMouseMove = function() {
this.mySize += amount;
disegna.lineStyle(this.mySize, this.myColor, 100);
newX = this._xmouse;
newY = this._ymouse;
this.lineTo(newX, newY);
oldX = this._xmouse;
oldY = this._ymouse;
updateAfterEvent();
};
};
disegna.onMouseDown = function() {
getURL(callurl, "_top");
this.onMouseMove = null;
};
//-------------initialize---------------
initi = function () {
disegna.myColor = "0xffcc00";
disegna.mySize = 4;
};
//--------------------------------------
initi();