El sitio más completo sobre programación, recursos web y herramientas online para Webmasters
Fecha: 26/11/2005

Drag and drop con Flash

Trucos flash:
Permite arrastrar MC's

Código Flash


on (press) {
var xcor = _root.AAA._x;
var ycor = _root.AAA._y;
startDrag ("_root.AAA");
}
on (release) {
stopDrag ();
if (_root.AAA._droptarget == "/BBB") {
_root.AAA._x = _root.BBB._x;
_root.AAA._y = _root.BBB._y;
} else {
_root.AAA._x = xcor;
_root.AAA._y = ycor;
}
}

AAA = Instance name for the movie clip that is to be dragged
BBB = Instance name for the movie clip that is to be dropped on it
Brief Explanation:
AAA consists of a "button". And, the action of this button has to be like above. Also, pay attention that the center of AAA and the center of the button has to be matched.
Drag and drop con Flash Categoría: Trucos, Flash


Scripts Similares:

» Abrir Popup en flash
» Adjuntar flash
» Agregar valor
» Archivos TXT en flash
» Array en asp
» Asteroides en flash
» Buscar con peliculas flash
» Buscar una string con flash
» Buscar valor
» Cambiar color con flash

Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2011 | Sitio creado y mantenido por Gabriel Marcelo Rodríguez
Hosting de alta calidad a bajo costo Neolo.com.ar