avanti alle variabili che sono relative al clip scrivi
this.
avanti alle variabili che sono scritte sulla root scrivi
_root
poi se vuoi puoi riscrivere in questo modo
codice:
Stage.showmenu=false;
velocita = 2;
frenata = 2;
slider.org_x = slider._x;
slider.newX = slider._x;
slider.org_y = slider._y;
slider.newY = slider._y;
slider.onEnterFrame=function(){
this.Xspeed = ((this._x-this.newX)/velocita+frenata)/2;
this._x -= this.Xspeed;
if (velocita<2) {velocita = 2}
this.Yspeed = ((this._y-this.newY)/velocita+frenata)/2;
this._y -= this.Yspeed;
if (velocita<2) {velocita = 2}
}
bottone.onPress=function(){
_root.slider.newX = (this._x)-780;
_root.slider.newY = (this._y)-700;
}