ciao
qualcuno mi saprebbe dire come si realizzano i bottoni elastici che si vedono in questo sito? http://www.nestmove.com/![]()
ciao
qualcuno mi saprebbe dire come si realizzano i bottoni elastici che si vedono in questo sito? http://www.nestmove.com/![]()
Una volta, per sbaglio, avevo creato un movimento elastico, ma non era fatto bene come questo...interessa anche a me...![]()
Forse non è la soluzione !!!
Ma è un buon inizio, crea un quadrato (clip) e chiamalo mc e poi
codice:inity = mc._y; targety = inity; initx = mc._x; targetx = initx; elfactor = 0.75; speedfactor = 3; dragging = false; maxX=initX+100 maxY=initY+100 minX=initX-100 minY=initY-100 mc.onEnterFrame=function() { if (dragging) { this._x = _root._xmouse; this._y = _root._ymouse; if(this._y>maxY or this._x>maxX){dragging=false} if(this._x<minX or this._y<minY){dragging=false} } else { diffx = targetx - this._x; diffy = targety - this._y; oldx = this._x; oldy = this._y; this._x += diffx / speedfactor + speedx * elfactor; this._y += diffy / speedfactor + speedy * elfactor; speedx = this._x - oldx; speedy = this._y - oldy; } } mc.onRollOver=function() { dragging = true; } mc.onRollOut=function(){ dragging = false; }![]()
Flash MX Esempi da scaricare -
Team www.BeatFly.com - render,photo,ecc.. Elements01.net - Beat Fly official Blog-
anzi mi correggo, forse è una delle soluzioni
codice:inity = mc._y; targety = inity; initx = mc._x; targetx = initx; elfactor = 0.75; speedfactor = 3; dragging = false; maxX=initX+100 maxY=initY+100 minX=initX-100 minY=initY-100 mc.onEnterFrame=function() { if (dragging) { this._x = _root._xmouse; this._y = _root._ymouse; if(this._y>maxY or this._x>maxX){dragging=false;targety=inity } if(this._x<minX or this._y<minY){dragging=false;targetx=initx } } else { diffx = targetx - this._x; diffy = targety - this._y; oldx = this._x; oldy = this._y; this._x += diffx / speedfactor + speedx * elfactor; this._y += diffy / speedfactor + speedy * elfactor; speedx = this._x - oldx; speedy = this._y - oldy; } } mc.onRollOver=function() { dragging = true; } mc.onRollOut=function(){ dragging = false; }
Flash MX Esempi da scaricare -
Team www.BeatFly.com - render,photo,ecc.. Elements01.net - Beat Fly official Blog-
il fla con 2 esempi lo trovi
http://www.rempox.it/forum/menu/menu...con_mouse.html
http://www.rempox.it/forum/menu/menu..._con_mouse.fla
Flash MX Esempi da scaricare -
Team www.BeatFly.com - render,photo,ecc.. Elements01.net - Beat Fly official Blog-
Qui c'è l'originale per eccellenza, scaricato dal sito mjau-mjau:
www.filelife.com/sticky.fla
Ciao,
dover
impossibile scaricare connessione.![]()
Flash MX Esempi da scaricare -
Team www.BeatFly.com - render,photo,ecc.. Elements01.net - Beat Fly official Blog-
Grazie rempox![]()
Rempox,
ho trasformato il mc "menu" in bottone per richiamare con il release una pagina web ma non mi funziona, non la apre![]()
Come mai?
![]()