Pausing Movie & User Interaction Issues

This is a discussion on "Pausing Movie & User Interaction Issues" within the Flash & Multimedia Forum section. This forum, and the thread "Pausing Movie & User Interaction Issues are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 10th, 2007, 21:41
Junior Member
Join Date: May 2005
Location: North Carolina
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Pausing Movie & User Interaction Issues

Hello All –

I have been going around and around in circles trying to find a script for what I thought would be an easy thing to do. Here’s where I’m at – I have a Flash movie that has five images. What I need it to do is automatically play through the movie and display each image for about 10 seconds then move onto the next image.

What is also needed is for the user to click on one of the five buttons so if Image 4 is showing the user can click on Button 2 to bring up Image 2 and then after pausing for the specified time the movie will resume playing and pausing.

Client Specifications: The images and text/link must be set up so that those elements can be updated externally. Right now this movie has the images being loaded with the Loader Component so that the five jpgs are loaded dynamically and the text/link is being loaded with the TextArea Component through the five txt files in the folder.

Each image is set up in its own Movie Clip and each clip contains a mask for the rounded corners and a fade-in for the beginning along with the image and text being loaded. So there are five movie clips.

My Problem: When you first load the movie it plays fine. However, when you click on a button – say the movie is displaying Image 4, click on Button 2 and it jumps back to display Image 2 and then the timing goes crazy. The movie starts playing faster and will even get to the point where it skips from Image 1 to Image 3.

Here is the movie: http://www.fractalrust.com/flash/

The Code: This code is on the first frame of the main timeline:
function wait() {
stop();
var myInterval = setInterval(function() {
play();
clearInterval(myInterval);
}, 10*1000);
}

This code is on the same frame as each movie clip on the main timeline:
wait();

I have gone through a lot of different scripts that I found and this is the only one that comes close to doing what I want. Not sure if the script I found is compatible with Flash 8, which is what I am using. If anyone could let me know if what I am looking to do is doable that would be great. Also if you want to take a look at the movie you can download it: http://fractalrust.com/flash/fiveheaders.zip

One last note – the person who asked me to do this got the idea from this site: http://aimtoday.aim.com/
It’s the Flash movie off in the upper right corner that has four rotating images and you can click on the buttons to jump to anyone of them.

Thanks in advance!
SqrlGrl
Reply With Quote

  #2 (permalink)  
Old Jun 11th, 2007, 14:42
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Pausing Movie & User Interaction Issues

I can take a look at it a bit later, but at first glance it looks like you need something to clear the wait() function. If I don't push any buttons it works fine.

However when I start clicking all over like you said, it starts to jump all over the place...I have a feeling it is because the wait() function has been started...5-6 times at that point and it starts advancing when the intervals finish.

Hope this helps to get you on the right track, I'll take a look at it when I get home tonight.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
flash 8, pause movie, setinterval

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
InterAction daygon Free Web Site Critique 5 Feb 13th, 2008 20:41
InterAction Multi Media *Samples* daygon Free Web Site Critique 1 Apr 10th, 2007 13:37
Religion and a Movie Ryan Fait Webforumz Cafe 15 Apr 4th, 2007 17:16
InterAction Media daygon Free Web Site Critique 3 Feb 13th, 2007 17:38
PHP interaction with my SQL data fredski PHP Forum 0 Feb 7th, 2006 11:49


All times are GMT. The time now is 12:07.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43