pero no solo es arrastrar el movieclip... sino ke tambien funcione el codigo .. este es el completo...
Código :
System.useCodepage = true;
var meuXML:XML = new XML();
meuXML.ignoreWhite = true;
meuXML.load("blog.xml");
MovieClip.prototype.startArrastre = function(centrar) {
delete this.onMouseMove;
if (centrar) {
var desfaseX:Number = 0;
var desfaseY:Number = 0;
} else {
var desfaseX:Number = _xmouse-this._x;
var desfaseY:Number = _ymouse-this._y;
}
this.onMouseMove = function() {
this._x = _xmouse-desfaseX;
this._y = _ymouse-desfaseY;
updateAfterEvent();
};
};
MovieClip.prototype.stopArrastre = function() {
delete this.onMouseMove;
};
function Duplica() {
var menuBot:String = "menu";
var posX:Number = 5;
var posY:Number = -10;
for (var i = 0; i<meuXML.childNodes.length; i++) {
var titulo:String = meuXML.childNodes[i].attributes.titulo;
this.attachMovie("menu",titulo,i+10);
var item:Object = this[titulo];
item.titulo = (meuXML.childNodes[i].attributes.titulo);
item.imagen = (meuXML.childNodes[i].attributes.imagen);
item.fecha = (meuXML.childNodes[i].attributes.fecha);
item.contenido = (meuXML.childNodes[i].attributes.contenido);
item.video = (meuXML.childNodes[i].attributes.video);
item.bt.onRollOver = function() {
attachMovie("tips","tip",8,"10");
tip._visible = true;
tip.startArrastre(true);
tip.lbl.text = this._parent.titulo;
tip.lbl.autoSize = "left";
tip.left._y = tip.middle._y=tip.right._y;
tip.middle._width = Math.round(tip.lbl.textWidth)-12;
tip.right._x = tip.middle._x+tip.middle._width;
};
item.bt.onRollOut = function() {
tip._visible = 0;
tip.stopArrastre();
tip.lbl.text = this._parent.titulo;
};
loadMovie(item.imagen, item.foto);
item.titulo_txt.text = item.titulo;
item._x = posX;
item._y = posY += item._height+8;
item.bt.useHandCursor = false;
item.bt.onRelease = function() {
diamesano.text = this._parent.fecha;
titul.text = this._parent.titulo;
contenidotexto.text = this._parent.contenido;
var netConection:NetConnection = new NetConnection();
netConection.connect(null);
var netStream:NetStream = new NetStream(netConection);
alvo.attachVideo(netStream);
netStream.setBufferTime(5);
netStream.play(this._parent.video+".flv");
marco._visible = true;
titul._visible = true;
contenidotexto._visible = true;
diamesano._visible = true;
};
}
}
meuXML.onLoad = function(ok) {
if (ok) {
Duplica();
}
};