h=Received:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:X-Mailer:X-MimeOLE:Thread-Index:In-Reply-To:Disposition-Notification-To;
b=EmQ48cYBOkXMKRXZ5fwQGJD8iBegfLba/zjoYKyhep4/LjBnFJy00wa4GQjzYeHp8SV1ArYn/3TYG3Y0AfYoY9h4cK0So+3CbVRBeMMnfnDfoI5FbFMNw/zZLmuSsUrqDfydpCBYxLBx7xdDufaLyl+IMnKWvoF3T2B/HbeYtXg=
;
Received: from unknown (HELO ana) ([EMAIL PROTECTED] with login)
by smtp103.mail.sc5.yahoo.com with SMTP; 9 Jan 2006 20:44:30 -0000
From: "German" <[EMAIL PROTECTED]>
To: <[email protected]>
Subject: RE: [ASNativos] Buscando clase ICONO
Date: Mon, 9 Jan 2006 18:42:19 -0300
Message-ID:
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAawZCG7rIxBGp7jKywrEf5MKAAAAQAAAArhy0CHzt9U2ykg/[EMAIL
PROTECTED]>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook, Build 11.0.5510
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Thread-Index: AcYVGcdg+GLdRYdqQFauPD26GwPW1AASofTQ
In-Reply-To: <[EMAIL PROTECTED]>
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1b2
X-BeenThere: [email protected]
X-Mailman-Version: 2.1b2
Precedence: bulk
Reply-To: [email protected]
List-Id: Lista dedicada a Actionscript <5dms.com.asnativos.5dms.com>
List-Post: <mailto:[email protected]>
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]
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:[email protected]
http://www.5dms.com/listas
----------------------------------