flash里怎样实时获取不不断变化的变量值,并根据变量的值运行一个函数 5
if(_root.slider.grabber._y<-15){varglow=newflash.filters.GlowFilter(16777215,1,2,2,32...
if ( _root.slider.grabber._y<-15 ) {var glow = new flash.filters.GlowFilter(16777215, 1, 2, 2, 32, 1);
var formatroad_fmt = new TextFormat();
formatroad_fmt.size = 6;
formatroad_fmt.color = 255;
var road_xml = new XML();
road_xml.ignoreWhite = true;
road_xml.onLoad = function (success)
{
if (success)
{
var childItems = road_xml.firstChild.childNodes;
var f = 0;
var k = 0;
var i = 0;
var arr = new Array();
var arr1 = new Array();
while (i < childItems.length-60)
{
var x = childItems[i].childNodes[1].childNodes[0].nodeValue;
var y = childItems[i].childNodes[2].childNodes[0].nodeValue;
var u = childItems[i].childNodes[3].childNodes[0].nodeValue;
arr[i]=childItems[i].childNodes[3].childNodes[0].nodeValue;
num = Number(y);
y1=num+0.5;
_root.map_mc.ditu.bzmap_mc.createTextField("road" + i, f, x, y, 1, 1);
p = eval("road" + i); 展开
var formatroad_fmt = new TextFormat();
formatroad_fmt.size = 6;
formatroad_fmt.color = 255;
var road_xml = new XML();
road_xml.ignoreWhite = true;
road_xml.onLoad = function (success)
{
if (success)
{
var childItems = road_xml.firstChild.childNodes;
var f = 0;
var k = 0;
var i = 0;
var arr = new Array();
var arr1 = new Array();
while (i < childItems.length-60)
{
var x = childItems[i].childNodes[1].childNodes[0].nodeValue;
var y = childItems[i].childNodes[2].childNodes[0].nodeValue;
var u = childItems[i].childNodes[3].childNodes[0].nodeValue;
arr[i]=childItems[i].childNodes[3].childNodes[0].nodeValue;
num = Number(y);
y1=num+0.5;
_root.map_mc.ditu.bzmap_mc.createTextField("road" + i, f, x, y, 1, 1);
p = eval("road" + i); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询