0

当影片剪辑在 Flash 文件中可见时,我试图停止播放下面的声道,但该变量位于加载到 FLA 中的 .as 文件中。如何定位该变量?现在,我正在为属性频道和歌曲获得“无敌”。

佛罗里达州:

if(myMC == visible){
    channel.stop();
}
else(channel = song.play());

.as 文件:

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);
                }
            }
4

0 回答 0