all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

IsPlaying?


IsPlaying? IwannaFlashU
7/18/2004 9:08:55 PM
flash actionscript:
hi, this should be a quickie for someone.

is there a property or event handler to check to see if a movie is currently
playing? NOT loaded, but actually playing.

I am making a video player interface. I have a dynamic text box that displays
the title of an avi segment that's currently being played. However, if the user
stops the avi (or when this swf is first loaded, the avi is loaded but NOT
playing) I want that box to display "Click on Play or a bookmark to select a
scene."

I tried looking for something like "if (movie.isPlaying){ ..." but have yet to
find such an animal.

any help in this regard is completely appreciated!

thanks!
Re: IsPlaying? jmallory
7/19/2004 12:30:47 AM
You need to write a function that checks the target clips status like so:



function checkVideoPlayer(targetMC) {
frameCheck1 = targetMC._currentframe;

function checkActive() {
frameCheck2 = targetMC._currentframe;
if(frameCheck1 == frameCheck2) {
trace("Video is playing");
} else {
trace("Video is stopped");
};
};
};


AddThis Social Bookmark Button