0
동시에 (AS2 또는 AS3에서) 비디오와 MC를 동시에 시작할 수 있습니까?플래시로 동시에 비디오를 시작하고 무비 클립을 재생하십시오.
동영상은 동영상 대화 상자의 애니메이션 인용구가 포함 된 동영상 클립과 함께 재생되므로 동기화가 중요합니다.
동시에 (AS2 또는 AS3에서) 비디오와 MC를 동시에 시작할 수 있습니까?플래시로 동시에 비디오를 시작하고 무비 클립을 재생하십시오.
동영상은 동영상 대화 상자의 애니메이션 인용구가 포함 된 동영상 클립과 함께 재생되므로 동기화가 중요합니다.
AS3.
이미 videoPlayer 또는 일부 넷 스트림 및 메타 데이터 처리기가 있다고 가정합니다. 무대에 필요한 모든 항목이 있습니다.
var playProgressTimer:Timer;
var movieClip:MovieClip;
function handlePlayButtonClicked (e : MouseEvent) : void
{
playProgressTimer = new Timer(100);
playProgressTimer.addEventListener(TimerEvent.TIMER, onPlayProgressTick);
playProgressTimer.start();
}
function onPlayProgressTick (e : TimerEvent) : void
{
if (!netStream || !metaData)
return;
// getting the progress of the video
var _playProgress:Number = netStream.time/metaData.duration;
// setting the same progress to the movieclip you have.
movieClip.gotoAndStop(int(_playProgress * movieClip.totalFrames));
}
대단히 감사합니다. –
당신을 환영합니다! –