Ver Mensaje Individual
  #9 (permalink)  
Antiguo 08/03/2009, 17:56
NathFly
 
Fecha de Ingreso: noviembre-2008
Mensajes: 41
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: Espero que sea pregunta facil!

esta???



Cita:
generate = function (j)
{
this.attachMovie("item", "item" + j, j);
this["item" + j].id = j;
loadImage(j, xmlDoc.firstChild.childNodes[j - 1].attributes.img);
title = xmlDoc.firstChild.childNodes[j - 1].attributes.title;
by = xmlDoc.firstChild.childNodes[j - 1].attributes.desc;
link = xmlDoc.firstChild.childNodes[j - 1].attributes.link;
var title2 = title;
var by2 = by;
var link2 = link;
this["item" + j]._yscale = 0;
this["item" + j]._xscale = 0;
Tweener.addTween(this["item" + j], {_xscale:100, _yscale:100, time:0.8, delay:0.1*j, transition:"easeInOutExpo"});
this.attachMovie("Tip", "toolTip", 1000);
toolTip.tipMask._width = 0;

this["item" + j].onRollOver = function() {
_root.toolTip.texts.titleText.text = title2;
_root.toolTip.texts.byText.text = by2;
bot_sound.start();
Tweener.addTween(toolTip, {_x:this._x + 20, _y:this._y - 20, time:0.1, rounded:true, transition:"easeOutExpo"});
Tweener.addTween(toolTip.tipBg, {_width:toolTip.texts._width + 30, time:0.3, transition:"easeOutExpo"});
Tweener.addTween(toolTip.tipMask, {_width:toolTip.texts._width + 30, time:0.5, delay:0.1, transition:"easeInOutExpo"});
Tweener.addTween(this.maskImg, {_width:100, _height:100, time:0.2, transition:"easeOutExpo"});
Tweener.addTween(this.botBg, {_width:110, _height:110, time:0.3, transition:"easeOutBack"});
};
this["item" + j].onRollOut = this["item" + j].onReleaseOutside = function() {
Tweener.addTween(this.maskImg, {_width:70, _height:70, time:0.3, transition:"easeOutBack"});
Tweener.addTween(this.botBg, {_width:70, _height:70, time:0.3, transition:"easeOutBack"});
Tweener.addTween(toolTip.tipMask, {_width:0, time:0.1, transition:"easeOutExpo"});
};
this["item" + j].onPress = function() {
Tweener.addTween(this.maskImg, {_xscale:70, _yscale:70, time:0.3, transition:"easeOutBack"});
Tweener.addTween(this.botBg, {_width:70, _height:70, time:0.3, transition:"easeOutBack"});
diff = this.id - _root.itemReal;
_root.itemActive = _root.itemActive + diff;
_root.itemReal = this.id;
_root.refreshItemActive();
//action for external link
//getURL (link2, "_blank");
//action for loadMovie (need to create a new movie clip with the instance "contentMovie")
//loadMovie (link2, contentMovie);
//DEMO ACTION
linkText.text = link2;
};
};