theVideo.playPauseButton = player; theVideo.seekBar = seeker; theVideo.muteButton = muter; // theVideo.preview = "previewImage.png"; stage.addEventListener(Event.ENTER_FRAME, hidePreview); function hidePreview(ev:Event):void { if (theVideo.playing == true) { previewOfVideo.visible = false; } }