0
我有一個movieclip Video_Flow實例,稱爲流。我試圖讓它只在按下按鈕時播放,但由於某種原因,每次運行程序時都會開始播放音頻。這是我的代碼:Flash自動播放movieclip
var flow:Video_Flow = new Video_Flow();
PlayButton.addEventListener(MouseEvent.CLICK, PlayVideo);
function PlayVideo(event:MouseEvent)
{
addChild(flow);
flow.x = 0;
flow.y = 50;
}