回复 2楼 aspic
我的Flash 是这样写的:
// Action script...
// [onClipEvent of sprite 21 in frame 1]
onClipEvent (initialize)
{
source = "";
h = 20;
w = 150;
ind = 100;
spacing = 0;
fontColor = 0;
buttonFont = "Arial";
buttonFontSize = 12;
emb_f = false;
showRootNode = false;
horizontal = false;
}
// [Action in Frame 1]
xmlString = "<DSFM width=\"200\" height=\"32\" spacing=\"0\" font=\"Verdana\" fontSize=\"13\" fontColor=\"0xFFFFFF\" fontBold=\"true\" align=\"left\" xOffset=\"30\" yOffset=\"5\" horizontal=\"false\" font_overcolor=\"0xFFFFFF\" sound=\"\" embedFont=\"false\" usexml=\"false\" flashWidth=\"200\" flashHeight=\"96\"><item name=\"添加信息\" url=\"xinxi.aspx\" callback=\"onClick\"/><item name=\"查看信息\" url=\"chakan.aspx\" callback=\"onClick\"/><item name=\"修改密码\" url=\"xiugai.aspx\" callback=\"onClick\"/></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);
} // end else if
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);
} // end else if
_global.overfontColor = font_overColor;
_global.menu_color = menu_color;
_global.menu_overColor = menu_overColor;
_global.mysound = sound;
if (embedFont == "true")
{
menu.setEmbed(true);
}
else
{
menu.setEmbed(false);
} // end else if
} // End of with
};
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);
} // end else if
menu.onClick = function (att)
{
p = att.url;
f = att.target;
getURL(p, f);
};
在哪里写scr啊 怎么写啊
flash我下的 一点也不懂