Bonjour a tous ,
quand j'essaie mon application au lieu d'avoir mon menu afficher j'ai undedined je ne sais pos pourquoi quelqu'un peu m'aider svp
voila mon code :
function menu()
{
pathID = _xml.idMap.menu;
totM = pathID.childNodes.length;
_root.totMM = totM;
while (i < totM)
{
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._h = pathID.childNodes[i].attributes.title;
mcx._txtT.autoSize = true;
mcx.btn._width = mcx._txtT._width;
mcx._bgx._width = mcx.btn._width;
++i;
} // end while
} // End of the function
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, 5.000000E-001);
_bg.tween("_alpha", 100, 5.000000E-001);
_bg._height = Stage.height;
_headMC.gotoAndPlay(2);
_headMC.tween("_alpha", 100, 5.000000E-001);
_headMC.tween("_x", 310, 5.000000E-001);
_arrow.tween("_x", 300, 5.000000E-001);
_arrow.tween("_alpha", 100, 5.000000E-001);
_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();
} // End of the function
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, 7.000000E-001, true);
++k;
if (k == totM + 1)
{
onEnterFrame = null;
} // end if
};
} // end if
} // End of the function
stop ();
_doneF = function ()
{
_loading._visible = false;
menu();
};
_xml = new XML();
var _path = "dbase.xml";
_xmlProtyp(_xml, _path, _doneF);