在FLA的.actionscript文件中找到目标变量?

时间:2013-10-24 14:34:43

标签: actionscript-3 flash variables

我试图在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);
                }
            }

0 个答案:

没有答案