Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 23rd, 2004, 10:07 AM
venusdesign venusdesign is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 49 venusdesign User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 5 m 43 sec
Reputation Power: 5
Play movie clip at timed intervals

Hi - i'm brand new to FLASH & am attempting a simple first project. I have a 6 frame animation of a duck quacking. I would like to create a FLASH movie to be embedded on a web page that will play the movie clip every 60 seconds. Can anyone point me in the proper direction to accomplish this... unfortunately looking thru the lessons & tutorials w/ FLASH haven't helped so far.

Any help is appreciated!


Reply With Quote
  #2  
Old February 23rd, 2004, 11:40 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,584 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 5 h 57 m 22 sec
Reputation Power: 534
Facebook MySpace
Hi, you've almost described setInterval with your subject line :¬). setInterval is a flash actionascript function that can be used to call a function every x milliseconds. You can read up about it in the built in flash help. I think there's an example of it's usage there as well. You could do what you want without setInterval though simply by extending a single level to say frame 120, 200 etc...it depends on your framerate. Anyway at the final frame simply use gotoAndPlay(1); to jump back to the start and play the whole thing again.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old February 23rd, 2004, 02:06 PM
venusdesign venusdesign is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 49 venusdesign User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 5 m 43 sec
Reputation Power: 5
thanks

hey Tann,

yeah, I was going to just increase the # of frames but figured I might as well start digging into ActionScript.

Anyways, thanks for pointing me in the right direction.

ciao!

Reply With Quote
  #4  
Old February 23rd, 2004, 03:31 PM
jmichels's Avatar
jmichels jmichels is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Orlando, FL
Posts: 177 jmichels User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 18 m 12 sec
Reputation Power: 6
Code:
timer = setInterval(delay, 60000);
function delay() {
	clearInterval(timer);
	your_movie_clip.gotoAndPlay(2);
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Play movie clip at timed intervals


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway