Hi,
I need to view a movie which is linked in the SWF file using the following option:
“Load external video with playback component”
I have created 3 buttons manually, “Play” “Pause” & “Stop” and written the following code:
BtnPlay.addEventListener(MouseEvent.CLICK,PlayClickHandler);
function PlayClickHandler(event:MouseEvent):void {
VideoBox.MPlayer.play() ;}
BtnPause.addEventListener(MouseEvent.CLICK,PauseClickHandler);
function PauseClickHandler(event:MouseEvent):void {
VideoBox.MPlayer.stop() ;}
BtnStop.addEventListener(MouseEvent.CLICK,StopClickHandler);
function StopClickHandler(event:MouseEvent):void {
VideoBox.MPlayer.gotoAndStop(0) ;}
The code for “Stop” button throws the following error:
ReferenceError: Error #1069: Property gotoAndStop not found on fl.video.FLVPlayback and there is no default value.
** at Video_fla::VFrame_2/StopClickHandler()
**How to resolve this issue?