FLV Play/pause Toggle Help

Hi folks – I’m fairly new to AS3 and have run into a problem getting my play/pause toggle to work properly. As it stands, the toggle code reads:

playPause.addEventListener(MouseEvent.MOUSE_OVER, playPauseOverHandler);
playPause.addEventListener(MouseEvent.MOUSE_OUT, playPauseOutHandler);
playPause.addEventListener(MouseEvent.MOUSE_UP, playPauseUpHandler);
playPause.addEventListener(MouseEvent.CLICK, playPauseClickHandler);
        
    function playPauseOverHandler(event:MouseEvent):void {         
        if(event.target.currentFrame == 1) event.target.gotoAndStop("pauseOver");         
        else event.target.gotoAndStop("playOver");     
    }
        
    function playPauseOutHandler(event:MouseEvent):void {
        if(playPause.currentFrame == 10) playPause.gotoAndStop("pause");
        else playPause.gotoAndStop("play");
    }
        
    function playPauseUpHandler(event:MouseEvent):void {
        if(playPause.currentFrame == 10) playPause.gotoAndStop("pause");
        else playPause.gotoAndStop("play");
    }
        
    function playPauseClickHandler(event:MouseEvent):void {
            if(playPause.currentframe == 10)
            {
                playPause.gotoAndStop("playOver");
                ns.pause();
            }
            else
            {
                playPause.gotoAndStop("pauseOver");
                ns.pause();
            }
    }

…with ‘playPause’ representing my movie clip. In tests, when the video is playing, it will successfully pause on click, but a) the movie clip does not jump to the ‘play over’ frame, and b) when clicked again, the button does not resume the video playback.

One external issue that might be impacting these errors is the fact that the net stream has been coded to look to an array of sequential videos, so playback typically looks like >

ns.play(videos[currentVideo]);

…where ‘videos’ represents the video object and ‘currentVideo’ represents whatever video is being referenced by the array.

Any help would be much appreciated. Links to creating custom players in AS3 would also be a big help. Thanks Kirupas!