Drag and Drop, arrastrar y soltar un objeto en actionscript
April 19th, 2007
Este es un pequeño ejemplo de como hacer un arrastrar y soltar de un movieclip en actionscript.
El primer paso será crear en un Movieclip al que colocaremos el nombre de instancia “mc”.
Este es el codigo:
- mc.onPress = function() {
- startDrag(this);
- }
- mc.onRelease = function() {
- stopDrag();
- }
Así de sencillo.
Ejemplo:
This movie requires Flash Player 8
Entry Filed under: ActionScript
2 Comments Add your own
1. pedro | April 25th, 2007 at 21:36
ssssssssssssssssssss
2. Jesus | June 28th, 2007 at 22:37
Necesito tener uana ayuda ya que deseo realizar un ejercicio donde tengo que arrastrar un objeto a un sitio determinado y dependiendo del objeto arrastrado y seleccionado debo guardar un valor y colocarlo en otro espacio
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed