![]()
creati quattro campi di testo dinamici...
li chiami xn,yn,xr,yr
sulla root scrivi questo
xr e yr dovrebbero visualizzare numeri interi...codice:_root.onMouseMove = function() { x = _xmouse; y = _ymouse; arr_x = Math.round(x); arr_y = Math.round(y); this.xn.text = x; this.yn.text = y; this.xr.text = arr_x; this.yr.text = arr_y; };
arrotondati per eccesso,o difetto,all'intero più vicino..
altrimenti usa floor...
![]()