我试图在Flash文件中看到一个动画片段时停止播放下面的声道,但该变量位于FLA中加载的.as文件中。我该如何定位该变量?现在我正在为属性频道和歌曲“不受欢迎”。
FLA:
if(myMC == visible){
channel.stop();
}
else(channel = song.play());
.as file:
public var channel:SoundChannel;
public function Main(param:MovieClip) {
function showXML(e:Event):void {
websiteXML = new XML(e.target.data);
MovieClip(root).gotoAndPlay(3);
//trace(websiteXML);
popupFunction();
var urlStr:String = websiteXML.settings.mp3Url.@srcUrl;
var isStreaming:Boolean = websiteXML.settings.mp3Url.@streaming;
var song:Sound = new Sound();
song.load(new URLRequest(urlStr));
setTimeout(function():void {
channel = song.play(0, 999);
channel.soundTransform = new SoundTransform(1);
},1000);
}
}