h=Received:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:X-Mailer:Thread-Index:X-MimeOLE:Disposition-Notification-To;

        
b=glGZY4Rc8z+apybBuEeiknH/CpI9+bwg1QnFdk1+phJE8G+Um+lQkcxZje6d6IjKNIEtmOQkjZtVdO2lF5Xcka/64NtZsYAjIU7xczqMPVKUV0lt+RLIK8LMZ4W3eRPIPzLhdk4BwQGtdwgfz7t9RL1sie+//7btaqWMwSo1cbs=
        ;
Received: from unknown (HELO ana) ([EMAIL PROTECTED] with login)
  by smtp017.mail.yahoo.com with SMTP; 9 Jan 2006 21:04:19 -0000
From: "German" <[EMAIL PROTECTED]>
To: <asnativos@5dms.com>
Date: Mon, 9 Jan 2006 19:02:09 -0300
Message-ID: 
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAawZCG7rIxBGp7jKywrEf5MKAAAAQAAAABz/FYz1/[EMAIL
 PROTECTED]>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook, Build 11.0.5510
Thread-Index: AcYVGcdg+GLdRYdqQFauPD26GwPW1AASofTQAACgrdAAAFrqkA==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1b2
Subject: =?iso-8859-1?q?=5BASNativos=5D_?= RE: Buscando clase ICONO
X-BeenThere: asnativos@5dms.com
X-Mailman-Version: 2.1b2
Precedence: bulk
Reply-To: asnativos@5dms.com
List-Id: Lista dedicada a Actionscript <5dms.com.asnativos.5dms.com>
List-Post: <mailto:asnativos@5dms.com>
List-Subscribe: <http://list.5dms.com/mailman/listinfo/5dms.com.asnativos>,
        <mailto:[EMAIL PROTECTED]>
List-Unsubscribe: <http://list.5dms.com/mailman/listinfo/5dms.com.asnativos>,
        <mailto:[EMAIL PROTECTED]>
List-Archive: <http://list.5dms.com/mailman/private/5dms.com.asnativos>
List-Help: <mailto:[EMAIL PROTECTED]>
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]

=20

=20

http://www.cristalab.com/tutoriales/54/tutorial-del-evento-doble-click-en=
-un
-boton-de-flash

=20

-Ese tuto te ayudar=E1 en la parte del evento doble clic (que no es =
nativo de
flash, es una =93emulaci=F3n=94 del evento)

=20

Lo del arrastrar y colocar, solo deber=EDas hacer que los =EDconos en =
cuestion,
pertenezcan a una clase como esta (o parecida, lo dejo a tu criterio, =
esta
es una que yo hice y uso habitualmente)

=20

/* -----------------------------------------BEGIN
CLASS--------------------------------------------*/

import mx.events.EventDispatcher;

class com.DragThis extends MovieClip {

      var addEventListener:Function;

      var removeEventListener:Function;

      var dispatchEvent:Function;

      var dispatchQueue:Function;

      public function DragThis() {

            mx.events.EventDispatcher.initialize(this);

            this.init();

      }

      function init() {

            this.onPress =3D function() {

                  _root.__selected =3D this;//ten=E9s todo el tiempo la =
variable
=93_root.__selected=94 que contiene el =93=EDcono=94, seleccionado =
actualmente

                  this.onMouseMove =3D function() {

                        this._alpha =3D 50;

                        this._x =3D _parent._xmouse - this._width/2;

                        this._y =3D _parent._ymouse-this._height/2;

                        updateAfterEvent();

                  };

                  this.swapDepths(_parent.getNextHighestDepth());

            };

            this.onRelease =3D function() {

                  delete this.onMouseMove;

                  this._alpha =3D 100;

                  this._x =3D Math.round(this._x);

                  this._y =3D Math.round(this._y);

                  this.dispatchEvent({type:"onItemDropped"});

                 =20

            };

            this.onReleaseOutside =3D function() {

                  this.onRelease();

            };

      }

}

=20

/* -----------------------------------------END
CLASS--------------------------------------------*/

=20

Pod=EDa haber usado startDrag, pero por un tema de performance lo uso =
as=ED.

=20

Abrazos

Germ=E1n Wasem

http://www.germanwasem.k25.net <http://www.germanwasem.k25.net/>=20

=20

----------------------------------
Lista ASNativos:asnativos@5dms.com
http://www.5dms.com/listas
----------------------------------

Responder a