Bonjour je suis vraiment débutant et je voudrais une petite aide ! Je voudrais faire les liens sur ma bannière bouton vers des pages html ; mais comment faire ?
Voici mon code
xmlString = "<DSFM width=\'100\' height=\'23\' spacing=\'0\' font=\'Calibri\' fontSize=\'11\' fontColor=\'0x000000\' fontBold=\'true\' align=\'center\' xOffset=\'0\' yOffset=\'1\' horizontal=\'true\' font_overcolor=\'0xFFFFFF\' menu_overColor=\'0x0080FF\' sound=\'\' embedFont=\'false\' usexml=\'false\' flashWidth=\'550\' flashHeight=\'25\'><item name=\"Accueil\"/><item name=\"Presentation\"/><item name=\"Nos conseils\"/><item name=\"Nos marques\"/><item name=\"L'auto\"/></DSFM>";
Stage.align = "TL";
Stage.scaleMode = "noScale";
menu.readParam = function (objXml)
{
with (objXml.firstChild.attributes)
{
w = Number(width);
h = Number(height);
menu.setButtonsize(w,h);
s = Number(spacing);
menu.setButtonspacing(s);
size = Number(fontSize);
menu.setFont(font);
menu.setFontSize(size);
menu.setFontColor(fontColor);
if (fontBold == "true")
{
menu.setBold(true);
}
else
{
menu.setBold(false);
}
menu.setAlign(align);
menu.setField_x_Position(Number(xOffset));
menu.setField_y_Position(Number(yOffset));
if (horizontal == "true")
{
menu.setHV(true);
}
else
{
menu.setHV(false);
}
_global.overfontColor = font_overColor;
_global.menu_overcolor = menu_overColor;
_global.mysound = sound;
if (embedFont == "true")
{
menu.setEmbed(true);
return;
}
menu.setEmbed(false);
}
}
;
if (length(xmlString) > 5)
{
test = new XML();
test.ignoreWhite = true;
test.parseXML(xmlString);
menu.readParam(test);
menu.setXML(test);
}
else
{
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function ()
{
menu.readParam(my_xml);
menu.setXML(my_xml);
}
;
my_xml.load(xmlfile);
}
menu.onClick = function (att)
{
p = att.url;
f = att.target;
getURL(p, f);
}
;