Creo que esta ves por fin lo que dije tiene un orden logico
Este es el codigo que estoy usando
Código :
function loadXml(file:String) {
menuXml.ignoreWhite = true;
menuXml.onLoad = loadMapData;
menuXml.load(file);
function loadMapData() {
for (var i = 0; i<this.firstChild.childNodes.length; i++) {
var bn = this.firstChild.childNodes[i].attributes.buttonName;
var t = this.firstChild.childNodes[i].attributes.thumbs;
var b = _root.btn.bM1.attachMovie("button", bn, i);
b.pic_url = this.firstChild.childNodes[i].attributes.full_url;
b.pic_url2 = this.firstChild.childNodes[0].attributes.full_url;
b._x = xStart+((bWidth+2)*i);
b._y = yStart;
b.txt = bn;
loadMovie(t, b.foto);
b.onPress = function() {
if (loaded == filesize) {
contenedor._alpha = 0;
contenedor.loadMovie(this.pic_url);
}
};
b.onRollOver = function() {
this.t2._y = 20;
this.t2._alpha = 0;
Tweener.addTween(this.t1,{_alpha:0, _y:-10, time:0.5});
Tweener.addTween(this.t2,{_alpha:80, _y:0, time:0.5, onStart:function () {
this._visible = true;
}});
Tweener.addTween(this.foto,{_alpha:100, time:1, onStart:function () {
this._visible = true;
}});
};
b.onRollOut = function() {
Tweener.addTween(this.t1,{_alpha:100, _y:0, time:0.5});
this.t2._visible = false;
this.foto._visible = false;
};
}
}
} 