Prova questo se può andare...
codice:onClipEvent(load){ init_X=_x; end_X=init_X+130; } onClipEvent (enterFrame) { _xscale += (end-_xscale)/2; _yscale = _xscale; _rotation += (ruota-_rotation)/2; pos_X=_x; if (hitTest(_root._xmouse, _root._ymouse, true)) { trace(pos_X+" - "+end_X); if(pos_X<=end_X){ _x+=5; } if (!sopra) { ruota = 12; sopra = true; end = 500; } } else { if(pos_X>=init_X){ _x-=5; } if (sopra) { ruota = -12; sopra = false; end = 280; } } }

Rispondi quotando