             videoPlayerProperties = {autoRewind: videoPlayer.autoRewind,
                                      scaleMode: videoPlayer.scaleMode};
         
-            videoPlayer.stop();
+            // if we try to stop and are throwing away this video, just 
+            // ignore any errors. This might happen if the connection went 
+            // bad or something else and we're trying to throw it away anyways.
+            try
+            {
+                videoPlayer.stop();
+            } catch (e:VideoError) {};
+            
+            // clear out old video player and close the connection
             videoPlayer.close();
             videoPlayer.clear();
             

    }
}
}

    public function VideoElement()
    {
        super();
        
        // set up the VideoPlayer's iNCManagerClass to point to our FlexNCManager, 
        // which is a private class
        VideoPlayer.iNCManagerClass = FlexNCManager;
        
        // we wrap the VideoPlayer inside of another container because 
        // the video player doesn't handle setting x/y correctly. we could allocate
