Menu dynamiqe flash xml

cs_laayoun Messages postés 10 Date d'inscription vendredi 19 août 2005 Statut Membre Dernière intervention 30 octobre 2008 - 15 oct. 2008 à 14:13
cs_laayoun Messages postés 10 Date d'inscription vendredi 19 août 2005 Statut Membre Dernière intervention 30 octobre 2008 - 15 oct. 2008 à 22:58
bonjour a tous,
je suis debutant, je voudrai adapter ce code mais je n'arrive comprendre certain chose quelqu'un peux m'aider svp ou m'explique le code :
pathID = _xml.idMap.menu;
totM = pathID.childNodes.length;
_root.totMM = totM;
for (;;)
{
if (i >= totM)
{
return;
}

mcx = mnCntanr.attachMovie("_menuTxt", "btn" + i, i);
mcx._alpha = 0;
mcx._y = i * 16;
mcx._i = i;
mcx._txt = pathID.childNodes[i].attributes.btnName;
mcx._p = pathID.childNodes[i].attributes.p;
mcx._f = pathID.childNodes[i].attributes.f;
mcx._h = pathID.childNodes[i].attributes.title;
mcx._css = pathID.childNodes[i].attributes.css;
mcx._txtT.autoSize = true;
mcx.btn._width = mcx._txtT._width;
mcx._bgx._width = mcx.btn._width;
++i;
}

}

function FR()
{
_root.mcolorx = pathID.childNodes[0].attributes.clrx;
_root.p = pathID.childNodes[0].attributes.p;
_root.f = pathID.childNodes[0].attributes.f;
_root._head = pathID.childNodes[0].attributes.title;
_root._numb = 0;
_root.styler = pathID.childNodes[0].attributes.css;
_bg.tween("_width", 300, 0.5);
_bg.tween("_alpha", 100, 0.5);
_bg._height = Stage.height;
_headMC.gotoAndPlay(2);
_headMC.tween("_alpha", 100, 0.5);
_headMC.tween("_x", 310, 0.5);
_arrow.tween("_x", 300, 0.5);
_arrow.tween("_alpha", 100, 0.5);
_arrow.btn._height = Stage.height / 2 - 100;
_arrow.colorTo(_root.menuArrow, 1, Elastic.easeOut, 0, null);
this.mnCntanr["btn" + k].btn.enabled = false;
this.mnCntanr["btn" + k].MOvr();
}

function executeCallback()
{
if (i == totM)
{
clearInterval(intervalID);
FR();
_root.menuS = true;
menuXY();
lockXY(true);
_root.Mtwn = true;
_root._contetnMC.gotoAndPlay(2);
onEnterFrame = function ()
{
new mx.transitions.Tween(this.mnCntanr["btn" + k], "_alpha", normal, this.mnCntanr["btn" + k]._alpha, 100, 0.7, true);
++k;
if (k == totM + 1)
{
onEnterFrame = null;
}

}
;
}

}

stop();
_logo = _root.logox[0];
_logoT.autoSize = true;
_slogT._y = _logoT._y + _logoT._height;
_slog = _root.logox[1];
_slogT.autoSize = true;
this.createEmptyMovieClip("mnCntanr", this.getNextHighestDepth());
mnCntanr._x = 45;
mnCntanr._y = _slogT._y + 60;
k = 0;
_doneF = function ()
{
_loading._visible = false;
menu();
}
;
_xml = new XML();
var _path = "dat/xml/xmlx.xml";
_xmlProtyp(_xml, _path, _doneF);
i = 0;
var intervalID = setInterval(this, "executeCallback", 30);

1 réponse

cs_laayoun Messages postés 10 Date d'inscription vendredi 19 août 2005 Statut Membre Dernière intervention 30 octobre 2008
15 oct. 2008 à 22:58
bonsoir a tous,
c'est j'ai trouvé mon bonheur merci comme même, je posterai ma source prochaine afin de pouvoir aider les novistes comme moi. 
0
Rejoignez-nous