toggling play/pause button for flv player

If you're familiar with Lee's tutorials for making a custom flash video player that he did a while back my question is based on that. After completing the tutorials I decided to try and figure out how to toggle the play button between play and pause. But my attempts are obviously not working. I can get it to puase but can't get it to play again. Here is what I tried:

ok I realized I was going about this wrong. toggling the play and pause isn't the problem, its figuring out how to tell the play/pause button to appear correctly. so when the video is paused the button switches from the play symbol to the pause symbol and also so that the appropriate rollovers play. I guess I need to know how to make the play/pause button check and see if the flash video is paused or playing.

Yep, that will work, the only issue is that you aren't actually giving it the commands to play or pause you're just toggling the playing/pausing. It will work for the most part, but there is the potential that the functions and the varaible may get out of sync. If you truely want it to play when you want to play and pause when you want to pause you should code it to actually do that: