To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-30-2003, 11:47 AM   #1
lfields
Junior Member
 
Join Date: Apr 2003
Posts: 2
Need to Loop Movie only 3 times

How do I get the movie to loop a specify amount of times.
I want the movie to loop 3 times only.

Thanks!
lfields is offline   Reply With Quote
Old 04-30-2003, 12:11 PM   #2
mykal100
Senior Member
 
Join Date: Mar 2003
Location: Ottawa, Canada
Posts: 104
Well, you could have a variable written to each time it loops,,,

I have included a FLA that accomplishes this, I hope it helps....

Note: In the fla, there is a symbol that is animated (animation within the MC). In frame one of the mc (its a ball), I set two variables. One for how many times it should loop, and the other just declaring for a counter. On frame 20, there is an conditional that either stops the movie if the counter var equals the howManyTimes it should loop variable (one of the two vars set in frame one of the ball symbol), or it increments the counter var and goes to frame two (because one of the vars declared in frame 1 gets incremented in frame 20, we cannot loop back to frame 1 (it would reset the counter to zero and we'd be in an infinite loop)).
Attached Files
File Type: fla loop3times.fla (32.0 KB, 1150 views)
__________________
MX User.
------------------
http://www.michaeldilts.com
mykal100 is offline   Reply With Quote
Old 04-30-2003, 01:13 PM   #3
lfields
Junior Member
 
Join Date: Apr 2003
Posts: 2
Thank you for taking the time to post back.

I will try it, it sounds kind of complicated for me, but I will give it a try. I was hoping it was just a matter of including a param tag to the html.

Appreciate it!

Last edited by lfields; 04-30-2003 at 01:44 PM.
lfields is offline   Reply With Quote
Old 06-15-2009, 04:28 PM   #4
ccscreative
Junior Member
 
Join Date: Jun 2009
Posts: 1
Question

what if i want to redirect to an specific URL after the 3 loops?
ccscreative is offline   Reply With Quote
Old 09-24-2009, 01:24 PM   #5
Bellyorb2
Junior Member
 
Join Date: Sep 2009
Posts: 2
Looping

Ifields ---

Look at the file MyKal100 provided. It works and it's a great starting foundation for what you can do with looping. Take a look at his coded frames. The first frame of code is the variable. The last frame of code is the If Then statement based on the variable.

If you look at the first part of the code in the last frame, you'll see
if (countMe==howManyTimes) {
stop();


That is saying that if the movie has played 3 times, then "stop", in which the player will stop on that particular frame. Replace the stop(); code with a "getURL" function. Like this exactly but replace the full URL path with your own:
getURL("http://www.yourdomain.com");

Hope that helps. MyKal100 just helped me big time even though the post is 4 years old.
Bellyorb2 is offline   Reply With Quote
Old 09-24-2009, 01:27 PM   #6
Bellyorb2
Junior Member
 
Join Date: Sep 2009
Posts: 2
CCSCREATIVE,

My post was for you instead of Ifields. Sorry.
Bellyorb2 is offline   Reply With Quote
Old 10-06-2009, 10:58 AM   #7
iuyo
Junior Member
 
Join Date: Feb 2008
Posts: 25
thx mykal100!
iuyo is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 04:00 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.