iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Visual Design > Flash and ActionScript

Reply
 
LinkBack Thread Tools
Old June 10th, 2007, 06:41 PM   #1
New Member
 

Join Date: May 2005
Location: North Carolina
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Sqrlgrl is on a distinguished road
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
Sqrlgrl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 11th, 2007, 11:42 AM   #2
Multimedia Specialist
 

Join Date: Apr 2007
Location: Arizona
Age: 26
Posts: 665
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Sgaspar11 has a spectacular aura about Sgaspar11 has a spectacular aura about
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
Sgaspar11 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
flash 8 , pause movie , setinterval


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Full Website Reviews 5 February 13th, 2008 05:41 PM
InterAction Multi Media *Samples* daygon Full Website Reviews 1 April 10th, 2007 10:37 AM
Religion and a Movie Ryan Fait The Café 15 April 4th, 2007 02:16 PM
InterAction Media daygon Full Website Reviews 3 February 13th, 2007 02:38 PM
PHP interaction with my SQL data fredski PHP 0 February 7th, 2006 08:49 AM


Search Engine Optimization by vBSEO 3.2.0 RC8