VideoEvent -> fl.video.VideoEvent
전체 명으로 변경하니 작동이 된다.
import fl.video.*;
import flash.events.VideoEvent;
myVideo.autoPlay = true;
myVideo.autoRewind = true;
function completePlay(e:fl.video.VideoEvent):void {
myVideo.stop();
myVideo.seek(0);
myVideo.play();
}
myVideo.addEventListener(fl.video.VideoEvent.COMPLETE, completePlay);
import fl.video.VideoEvent;
fl_video.autoRewind = true;
fl_video.addEventListener(VideoEvent.AUTO_REWOUND, doLoop);
function doLoop(e:VideoEvent):void{
e.target.play();
}
'Tools > Flash' 카테고리의 다른 글
flv 영상 부드럽게 스무싱 smothing [AS3][Flash] (0) | 2018.06.22 |
---|---|
키보드 명령 사용하기 [AS3][Flash] (0) | 2018.06.22 |
code hint cache [flash] (0) | 2018.06.22 |
Timer [as3] [flash] (0) | 2018.06.22 |
addChild [as3] [flash] (0) | 2018.06.22 |