<?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 Pause a Timeline (AS3)</title>
	<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Wed, 19 Nov 2008 04:17:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-245188</link>
		<pubDate>Sun, 10 Aug 2008 03:33:16 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-245188</guid>
					<description>brian,

Aha!  I see what you're thinking (I think!).  Nah, you're not being thick ... you're just interpreting the concept of &quot;trigger this function once&quot; in a different way.

When the playhead enters the frame in which this code appears &amp;#8212; and this is true of &lt;em&gt;any&lt;/em&gt; and &lt;em&gt;every&lt;/em&gt; time the playhead enters this frame &amp;#8212; Flash obeys the instructions and performs &lt;code&gt;timer.start();&lt;/code&gt;, which means the event handler associated with the &lt;code&gt;timer&lt;/code&gt; instance is going to do its thing ... once.

If you were to replace that 1 with a 2, the &lt;code&gt;TimerEvent.TIMER&lt;/code&gt; handler would perform its duties twice (following two 2-second delays).  If 3, then thrice (following three 2-second delays).  0 repeats forever.

Does that nail it?</description>
		<content:encoded><![CDATA[<p>brian,</p>
<p>Aha!  I see what you&#8217;re thinking (I think!).  Nah, you&#8217;re not being thick &#8230; you&#8217;re just interpreting the concept of &#8220;trigger this function once&#8221; in a different way.</p>
<p>When the playhead enters the frame in which this code appears &mdash; and this is true of <em>any</em> and <em>every</em> time the playhead enters this frame &mdash; Flash obeys the instructions and performs <code>timer.start();</code>, which means the event handler associated with the <code>timer</code> instance is going to do its thing &#8230; once.</p>
<p>If you were to replace that 1 with a 2, the <code>TimerEvent.TIMER</code> handler would perform its duties twice (following two 2-second delays).  If 3, then thrice (following three 2-second delays).  0 repeats forever.</p>
<p>Does that nail it?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: brian p</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-241663</link>
		<pubDate>Wed, 06 Aug 2008 08:50:12 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-241663</guid>
					<description>finally i've fond someone who explains all this code without me wanting to headbutt the screen in frustration. many thanks david !
now fr my stupid question ....
the '1' which tells the timer how many times to pause....i tried this but my flash movie keeps pausing it forever, ie each time the timer comes to the frame.
am i doing something wrong or just being thick ?</description>
		<content:encoded><![CDATA[<p>finally i&#8217;ve fond someone who explains all this code without me wanting to headbutt the screen in frustration. many thanks david !<br />
now fr my stupid question &#8230;.<br />
the &#8216;1&#8242; which tells the timer how many times to pause&#8230;.i tried this but my flash movie keeps pausing it forever, ie each time the timer comes to the frame.<br />
am i doing something wrong or just being thick ?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-194045</link>
		<pubDate>Tue, 03 Jun 2008 17:49:52 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-194045</guid>
					<description>&lt;strong&gt;To Rick ...&lt;/strong&gt;

Glad to hear it!

&lt;strong&gt;To James ...&lt;/strong&gt;

You're welcome.  :)</description>
		<content:encoded><![CDATA[<p><strong>To Rick &#8230;</strong></p>
<p>Glad to hear it!</p>
<p><strong>To James &#8230;</strong></p>
<p>You&#8217;re welcome.  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: James  McLean</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-193878</link>
		<pubDate>Tue, 03 Jun 2008 13:20:46 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-193878</guid>
					<description>Just wanted to say THANK YOU! I've just spent hours trawling through information about the timer class but nothing was using it in the way I wanted and then I came across this page. PERFECT</description>
		<content:encoded><![CDATA[<p>Just wanted to say THANK YOU! I&#8217;ve just spent hours trawling through information about the timer class but nothing was using it in the way I wanted and then I came across this page. PERFECT
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rick Gutierrez</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-186721</link>
		<pubDate>Wed, 21 May 2008 16:45:08 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-186721</guid>
					<description>Thanks David! This tutorial was exactly what I was looking for. This was much easier to understand for me than the olds AS2 way of doing things.

Thanks Again,
Rick</description>
		<content:encoded><![CDATA[<p>Thanks David! This tutorial was exactly what I was looking for. This was much easier to understand for me than the olds AS2 way of doing things.</p>
<p>Thanks Again,<br />
Rick
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-169971</link>
		<pubDate>Fri, 25 Apr 2008 20:10:34 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-169971</guid>
					<description>Sensi,

Glad to help!</description>
		<content:encoded><![CDATA[<p>Sensi,</p>
<p>Glad to help!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Sensi</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-167457</link>
		<pubDate>Tue, 22 Apr 2008 03:18:11 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-167457</guid>
					<description>Thank you David for that commented example, having not done any flash for nearly ten years you have almost saved my life. ;)</description>
		<content:encoded><![CDATA[<p>Thank you David for that commented example, having not done any flash for nearly ten years you have almost saved my life. <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-145709</link>
		<pubDate>Mon, 10 Mar 2008 18:00:08 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-145709</guid>
					<description>Jeremiah,

This particular blog entry is about pausing movie clip timelines, but I do have a related tutorial on this blog for an AS2 scrubber for FLVs.  I do plan to update it to AS3 sooner or later, but for the time being, at least, it may give you ideas on how to proceed in your conversion.

&lt;a href=&quot;http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part2&quot; target=&quot;_blank&quot;&gt;How to Build a Flash Video (FLV) Progress Bar (Part 2)&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Jeremiah,</p>
<p>This particular blog entry is about pausing movie clip timelines, but I do have a related tutorial on this blog for an AS2 scrubber for FLVs.  I do plan to update it to AS3 sooner or later, but for the time being, at least, it may give you ideas on how to proceed in your conversion.</p>
<p><a href="http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part2" target="_blank">How to Build a Flash Video (FLV) Progress Bar (Part 2)</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jeremiah</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-145316</link>
		<pubDate>Sun, 09 Mar 2008 23:44:54 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-145316</guid>
					<description>Hey I was hoping someone could help me out. I'm trying to build a custom flv player with a scrub bar, in action3.0, I've been using Lee's tuts to build in 2.j0 and converting to 3.0 the only thing I can't figure out is the scrubber part. Is there a tut out there done in 3.0

Thanks

J.</description>
		<content:encoded><![CDATA[<p>Hey I was hoping someone could help me out. I&#8217;m trying to build a custom flv player with a scrub bar, in action3.0, I&#8217;ve been using Lee&#8217;s tuts to build in 2.j0 and converting to 3.0 the only thing I can&#8217;t figure out is the scrubber part. Is there a tut out there done in 3.0</p>
<p>Thanks</p>
<p>J.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-135047</link>
		<pubDate>Sat, 16 Feb 2008 23:36:34 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3#comment-135047</guid>
					<description>Steve,

Assuming a button with the instance name &lt;code&gt;myButton&lt;/code&gt;, you could do this:

&lt;pre&gt;&lt;code&gt;stop();

var timer:Timer = new Timer(2000, 1);
timer.addEventListener(
  TimerEvent.TIMER,
  function(evt:TimerEvent):void {
    navigateToURL(new URLRequest(&amp;#34;http://www.domain.com/&amp;#34;));
  }
);

myButton.addEventListener(
  MouseEvent.MOUSE_UP,
  function(evt:MouseEvent):void {
    timer.start();
  }
);&lt;/code&gt;&lt;/pre&gt;

This example is very close to what's shown in the original article, only the &lt;code&gt;start()&lt;/code&gt; method is called inside the &lt;code&gt;MOUSE_UP&lt;/code&gt; handler.  (Note that the AS3 version of &lt;code&gt;getURL()&lt;/code&gt; is &lt;code&gt;navigateToURL()&lt;/code&gt;, which requires an instance of the &lt;code&gt;URLRequest&lt;/code&gt; class, rather than just a string).</description>
		<content:encoded><![CDATA[<p>Steve,</p>
<p>Assuming a button with the instance name <code>myButton</code>, you could do this:</p>
<pre><code>stop();

var timer:Timer = new Timer(2000, 1);
timer.addEventListener(
  TimerEvent.TIMER,
  function(evt:TimerEvent):void {
    navigateToURL(new URLRequest(&quot;http://www.domain.com/&quot;));
  }
);

myButton.addEventListener(
  MouseEvent.MOUSE_UP,
  function(evt:MouseEvent):void {
    timer.start();
  }
);</code></pre>
<p>This example is very close to what&#8217;s shown in the original article, only the <code>start()</code> method is called inside the <code>MOUSE_UP</code> handler.  (Note that the AS3 version of <code>getURL()</code> is <code>navigateToURL()</code>, which requires an instance of the <code>URLRequest</code> class, rather than just a string).
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
