gpt4 book ai didi

java - 使用 xml 数据访问外部 swf 中的电影

转载 作者:行者123 更新时间:2023-12-01 15:51:00 26 4
gpt4 key购买 nike

是否可以使用 vector 数据访问外部 swf(.fla 文件)内的影片剪辑?

以下代码可以正确运行:

this._graphics.message2_mc.textLabel_txt.text = "Test";

当我循环遍历 vector 并尝试替换“message2_mc”时,它找不到影片剪辑:

for(var i:uint = 1; i <= this._playlistState.subMovieVector.length - 1; i++) 
{
var movieName:String = this._playlistState.subMovieVector[i].movieName;
this._graphics.movieName.textLabel_txt.text = "Test";
}

这大概是因为我在访问影片剪辑的代码行中间放置了一个字符串?

最佳答案

您应该使用:

var movieName:String = this._playlistState.subMovieVector[i].movi​​eName; this._graphics[movieName].textLabel_txt.text = "测试";

关于java - 使用 xml 数据访问外部 swf 中的电影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6043989/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com