

































<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: How to Loop a Movie Three Times (AS2)</title>
	<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Tue, 07 Feb 2012 19:20:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: shazeenora</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-561094</link>
		<pubDate>Mon, 19 Sep 2011 15:39:46 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-561094</guid>
					<description>I want to know about clickTAG in Flash CS3 - AS2</description>
		<content:encoded><![CDATA[<p>I want to know about clickTAG in Flash CS3 - AS2
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: soheil</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-558932</link>
		<pubDate>Fri, 09 Sep 2011 16:57:16 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-558932</guid>
					<description>SO easy! Every other method was hard to implement. Thanks!</description>
		<content:encoded><![CDATA[<p>SO easy! Every other method was hard to implement. Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Craig</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-493613</link>
		<pubDate>Wed, 24 Nov 2010 20:38:27 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-493613</guid>
					<description>This really helped me out. Thanks!

I have another problem having to do with this that I could use help with:

I have a banner that starts with a blank screen and the objects fly in. At the end the objects fade out before it loops so it can start the animation over, but after the it loops three times I do not want that fade to be at the end. I want it to just stop before the fade out.

Is there a way to do that in the code?

thanks - any help is more than welcome</description>
		<content:encoded><![CDATA[<p>This really helped me out. Thanks!</p>
<p>I have another problem having to do with this that I could use help with:</p>
<p>I have a banner that starts with a blank screen and the objects fly in. At the end the objects fade out before it loops so it can start the animation over, but after the it loops three times I do not want that fade to be at the end. I want it to just stop before the fade out.</p>
<p>Is there a way to do that in the code?</p>
<p>thanks - any help is more than welcome
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: William V.</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-425145</link>
		<pubDate>Tue, 10 Nov 2009 05:22:29 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-425145</guid>
					<description>I think the answer to my problem is here but I am not sure.
Here is what I am trying to do. On my Flash site, I have a tab that will show some web banners that I have created. I got the swfs to load but it just keeps looping. I want it to play once and then stop.

I put a stop action on the last from of the banner ad swf and it stops when I test the swf on its own, but when I import it, it is not seeing the stop action. 

The whole banner is also set up to be a button and play again when I click on it. Again it works ok on the swf but not when I import.

Where do I put the code? And is it one of these loopCount codes that I need?

Please help it seems to be a common issue but I have yet to find something that is working for me.

Could it be that my index file that I am importing it into is AS2 and the swf being imported was built as AS3?

Any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>I think the answer to my problem is here but I am not sure.<br />
Here is what I am trying to do. On my Flash site, I have a tab that will show some web banners that I have created. I got the swfs to load but it just keeps looping. I want it to play once and then stop.</p>
<p>I put a stop action on the last from of the banner ad swf and it stops when I test the swf on its own, but when I import it, it is not seeing the stop action. </p>
<p>The whole banner is also set up to be a button and play again when I click on it. Again it works ok on the swf but not when I import.</p>
<p>Where do I put the code? And is it one of these loopCount codes that I need?</p>
<p>Please help it seems to be a common issue but I have yet to find something that is working for me.</p>
<p>Could it be that my index file that I am importing it into is AS2 and the swf being imported was built as AS3?</p>
<p>Any help would be appreciated.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rhonda</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-422729</link>
		<pubDate>Thu, 29 Oct 2009 00:13:24 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-422729</guid>
					<description>Thank you. I have been trying to code a movie to play twice, then stop for a month now and even the head of my company's web site's code did not work. This works! You are the man!</description>
		<content:encoded><![CDATA[<p>Thank you. I have been trying to code a movie to play twice, then stop for a month now and even the head of my company&#8217;s web site&#8217;s code did not work. This works! You are the man!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: rmigdow</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-416425</link>
		<pubDate>Fri, 02 Oct 2009 09:23:44 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-416425</guid>
					<description>Wow! I searched all over the web for what seems like a common need/request since most web banner reqs. don't allow forever loopage. Yours was the only solution that worked and I have this due in the a.m. I had almost given up -- thanks a gazillion!</description>
		<content:encoded><![CDATA[<p>Wow! I searched all over the web for what seems like a common need/request since most web banner reqs. don&#8217;t allow forever loopage. Yours was the only solution that worked and I have this due in the a.m. I had almost given up &#8212; thanks a gazillion!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-406360</link>
		<pubDate>Mon, 10 Aug 2009 12:42:48 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-406360</guid>
					<description>Rez,

The only thing my frame loop code does is send the playhead to the beginning of a timeline three times.  For scripted animations, as you guessed, you'll need some sort of code at the end of your existing ActionScript.  What the new code &lt;em&gt;does&lt;/em&gt; is entirely up to how your scripted animation is accomplished.

Are you using the &lt;code&gt;Tween&lt;/code&gt; class, by chance, or one of the popular AS-based tween engines?  If so, it's likely you can set up a listener to wait for the end of your scripted tween(s), then increment a &lt;code&gt;loopCount&lt;/code&gt; variable, like the one above, and reset the animation until &lt;code&gt;loopCount&lt;/code&gt; is greater than the desired number of loops.</description>
		<content:encoded><![CDATA[<p>Rez,</p>
<p>The only thing my frame loop code does is send the playhead to the beginning of a timeline three times.  For scripted animations, as you guessed, you&#8217;ll need some sort of code at the end of your existing ActionScript.  What the new code <em>does</em> is entirely up to how your scripted animation is accomplished.</p>
<p>Are you using the <code>Tween</code> class, by chance, or one of the popular AS-based tween engines?  If so, it&#8217;s likely you can set up a listener to wait for the end of your scripted tween(s), then increment a <code>loopCount</code> variable, like the one above, and reset the animation until <code>loopCount</code> is greater than the desired number of loops.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rez</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-406328</link>
		<pubDate>Mon, 10 Aug 2009 09:14:22 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-406328</guid>
					<description>Hi David,

Thanks for getting back so quickly!

The banner is scripted, not timeline based. Hence being on one frame. Does that mean it's going to be a problem to loop? Maybe I need some script to go at the end of my current script that replays all the actions? Hope you can help.

Thanks again,
Rez</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>Thanks for getting back so quickly!</p>
<p>The banner is scripted, not timeline based. Hence being on one frame. Does that mean it&#8217;s going to be a problem to loop? Maybe I need some script to go at the end of my current script that replays all the actions? Hope you can help.</p>
<p>Thanks again,<br />
Rez
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-405983</link>
		<pubDate>Fri, 07 Aug 2009 16:05:24 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-405983</guid>
					<description>Rez,

I'm not sure how a single-frame banner could loop at all.  Is your banner animated?  If so, the animation is probably taking up at least a few frames, right?  (This assumes your animation is timeline-based, rather than scripted.)  Maybe your animation takes place not in the main timeline, but rather, in a nested movie clip.  If that's the case, you'll have to put the suggested keyframe script in the last frame of your nested movie clip.  Does that make sense?</description>
		<content:encoded><![CDATA[<p>Rez,</p>
<p>I&#8217;m not sure how a single-frame banner could loop at all.  Is your banner animated?  If so, the animation is probably taking up at least a few frames, right?  (This assumes your animation is timeline-based, rather than scripted.)  Maybe your animation takes place not in the main timeline, but rather, in a nested movie clip.  If that&#8217;s the case, you&#8217;ll have to put the suggested keyframe script in the last frame of your nested movie clip.  Does that make sense?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rez</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-405982</link>
		<pubDate>Fri, 07 Aug 2009 16:00:21 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-loop-three-times#comment-405982</guid>
					<description>Hi David,

I have created a single frame banner and need it to loop 3 times. Should I be inserting the loop action with in the same frame all the banner actions are in, or should I create a second frame and insert it there? I have tried both with your script, but to no avail. Any suggestions?

Thanks in advance,
Rez</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>I have created a single frame banner and need it to loop 3 times. Should I be inserting the loop action with in the same frame all the banner actions are in, or should I create a second frame and insert it there? I have tried both with your script, but to no avail. Any suggestions?</p>
<p>Thanks in advance,<br />
Rez
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

