Friday, March 26, 2010

Need help with movie controls...

Hello All

Noob question, so bear with me.

I have a site that loads a page with video playing on one of the pages.?I have it set up so that clicking the button for that page starts the video, and so that clicking a button for another page stops the video.

However, instead of stopping the video it just pauses it, so that when the user returns to the page with the video the video picks up where it left off, rather than restarting.

My entire site is one big movie clip, so each page is not loaded when a button is clicked - the content is just tweened onto the stage.

Is there a way for me to have the control to stop the movie playing (other page buttons) or to start the movie playing (own page button) to have it restart from the first frame instead?

Code for the start is really simple:

content_mc.about_mc.myVideo.play();

and for stop is:

content_mc.about_mc.myVideo.stop();

Thanks.?I know I'm asking for the wrong thing because I've stumped the Google results with what I'm asking for, so help figuring out the right way to do this is much appreciated, although I really like the way the site is designed so preferably not redoing the whole site would be great!

C.

Need help with movie controls...

if you're not using a pause button you can enable the autoRewind property of your flvplayback instance so the flv restarts from the beginning each time it's stopped:

content_mc.about_mc.myVideo.autoRewind=true;


Need help with movie controls...

Thank you so much - that was perfect.

you're welcome.

No comments:

Post a Comment