<?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 Build a Flash Video (FLV) Progress Bar (Part 1)</title>
	<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Thu, 11 Mar 2010 16:56:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Michael Williams</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-321042</link>
		<pubDate>Mon, 15 Dec 2008 17:23:41 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-321042</guid>
					<description>I have an intro page which has a bit of animation, which at the end displays two buttons that should link to two flv.

On scene as2 

stop();

Stage.scaleMode = &quot;noscale&quot;;



chap1_btn.onRelease = function (){
    gotoAndStop(&quot;Scene 2&quot;, 1);
    clearInterval(yourInterval); // clear your interval function 
	};
	
chap2_btn.onRelease = function (){
    gotoAndStop(&quot;Scene 3&quot;, 1);
    clearInterval(yourInterval); // clear your interval function 
	}; 


On the second scene i have the player which has an flvplayer which has the following code attached.

stop();

Stage.scaleMode = &quot;noscale&quot;;

chap1_btn.onRelease = function (){
    gotoAndStop(&quot;Scene 2&quot;, 1);
    clearInterval(yourInterval); // clear your interval function 
	};
	
chap2_btn.onRelease = function (){
    gotoAndStop(&quot;Scene 3&quot;, 1);
    clearInterval(yourInterval); // clear your interval function 
	};
	
//below allow to cycle through the scenes.

var duration:Number = 240000; // set the call delay 
var yourInterval:Number = setInterval(doSomething, duration); 

function doSomething():Void 
{ 
gotoAndStop(&quot;Scene 3&quot;, 1); // play Scene 2 from frame 1 
clearInterval(yourInterval); // clear your interval function 


On the third scene I have the second flvplayer with the following code attached 


stop();

Stage.scaleMode = &quot;noscale&quot;;

chap1_btn.onRelease = function (){
    gotoAndStop(&quot;Scene 2&quot;, 1);
clearInterval(yourInterval); // clear your interval function 
	};
	
chap2_btn.onRelease = function (){
    gotoAndStop(&quot;Scene 3&quot;, 1);
clearInterval(yourInterval); // clear your interval function    
   };
	
//below allow to cycle through the scenes.

var duration:Number = 508000; 
var yourInterval:Number = setInterval(doSomething, duration); 

function doSomething():Void 
{ 
gotoAndPlay(&quot;Scene 1&quot;, 1); // play Scene 2 from frame 1 
clearInterval(yourInterval); // clear your interval function 


What i am trying to do is have an intro page with buttons linked to two different video. 
I know i probably approaching the project wrong by using scenes, but i am new to action script and know no better.

Is there a simpler way to approach my goals on this project. 


I have looked at your 'How to Play Flash Video Files (FLV) Sequentially' and got the flvplayer playing the two videos continuously, but cannot figure out how to attached the intro.. 

Can you help?</description>
		<content:encoded><![CDATA[<p>I have an intro page which has a bit of animation, which at the end displays two buttons that should link to two flv.</p>
<p>On scene as2 </p>
<p>stop();</p>
<p>Stage.scaleMode = &#8220;noscale&#8221;;</p>
<p>chap1_btn.onRelease = function (){<br />
    gotoAndStop(&#8221;Scene 2&#8243;, 1);<br />
    clearInterval(yourInterval); // clear your interval function<br />
	};</p>
<p>chap2_btn.onRelease = function (){<br />
    gotoAndStop(&#8221;Scene 3&#8243;, 1);<br />
    clearInterval(yourInterval); // clear your interval function<br />
	}; </p>
<p>On the second scene i have the player which has an flvplayer which has the following code attached.</p>
<p>stop();</p>
<p>Stage.scaleMode = &#8220;noscale&#8221;;</p>
<p>chap1_btn.onRelease = function (){<br />
    gotoAndStop(&#8221;Scene 2&#8243;, 1);<br />
    clearInterval(yourInterval); // clear your interval function<br />
	};</p>
<p>chap2_btn.onRelease = function (){<br />
    gotoAndStop(&#8221;Scene 3&#8243;, 1);<br />
    clearInterval(yourInterval); // clear your interval function<br />
	};</p>
<p>//below allow to cycle through the scenes.</p>
<p>var duration:Number = 240000; // set the call delay<br />
var yourInterval:Number = setInterval(doSomething, duration); </p>
<p>function doSomething():Void<br />
{<br />
gotoAndStop(&#8221;Scene 3&#8243;, 1); // play Scene 2 from frame 1<br />
clearInterval(yourInterval); // clear your interval function </p>
<p>On the third scene I have the second flvplayer with the following code attached </p>
<p>stop();</p>
<p>Stage.scaleMode = &#8220;noscale&#8221;;</p>
<p>chap1_btn.onRelease = function (){<br />
    gotoAndStop(&#8221;Scene 2&#8243;, 1);<br />
clearInterval(yourInterval); // clear your interval function<br />
	};</p>
<p>chap2_btn.onRelease = function (){<br />
    gotoAndStop(&#8221;Scene 3&#8243;, 1);<br />
clearInterval(yourInterval); // clear your interval function<br />
   };</p>
<p>//below allow to cycle through the scenes.</p>
<p>var duration:Number = 508000;<br />
var yourInterval:Number = setInterval(doSomething, duration); </p>
<p>function doSomething():Void<br />
{<br />
gotoAndPlay(&#8221;Scene 1&#8243;, 1); // play Scene 2 from frame 1<br />
clearInterval(yourInterval); // clear your interval function </p>
<p>What i am trying to do is have an intro page with buttons linked to two different video.<br />
I know i probably approaching the project wrong by using scenes, but i am new to action script and know no better.</p>
<p>Is there a simpler way to approach my goals on this project. </p>
<p>I have looked at your &#8216;How to Play Flash Video Files (FLV) Sequentially&#8217; and got the flvplayer playing the two videos continuously, but cannot figure out how to attached the intro.. </p>
<p>Can you help?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jim</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-271109</link>
		<pubDate>Sun, 14 Sep 2008 01:46:19 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-271109</guid>
					<description>I am destroying my brain with all of the searching and reading and picking up a bread crumbs here and there . I need a video controller with most, if not all,  the functionality of the MediaController. I am using the technique outline in your post titled &quot;How to Control Video (FLV) without a Component.&quot; I can already control the player with the External API and JavaScript but my boss wants a controller in the flash player as well. The player expands in a  but keeps playing when the div is hidden. That's why I call the function to stop it in JavaScript when the user hides it. However, when the player is visible, my boss wants to control it. Please help... I'm desperate.</description>
		<content:encoded><![CDATA[<p>I am destroying my brain with all of the searching and reading and picking up a bread crumbs here and there . I need a video controller with most, if not all,  the functionality of the MediaController. I am using the technique outline in your post titled &#8220;How to Control Video (FLV) without a Component.&#8221; I can already control the player with the External API and JavaScript but my boss wants a controller in the flash player as well. The player expands in a  but keeps playing when the div is hidden. That&#8217;s why I call the function to stop it in JavaScript when the user hides it. However, when the player is visible, my boss wants to control it. Please help&#8230; I&#8217;m desperate.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: liam</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-226851</link>
		<pubDate>Thu, 24 Jul 2008 00:45:46 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-226851</guid>
					<description>Hi David
I just wanted to say that you are an absolute legend!
Ive been looking for some good flv help for ages!
All of the stuff on flv's without components is gold dust.
My head was close to exploding until I stumbled upon your blog.
I swear I got an erection after reading your flv articles.
Thanks again man. You saved my life.
Liam</description>
		<content:encoded><![CDATA[<p>Hi David<br />
I just wanted to say that you are an absolute legend!<br />
Ive been looking for some good flv help for ages!<br />
All of the stuff on flv&#8217;s without components is gold dust.<br />
My head was close to exploding until I stumbled upon your blog.<br />
I swear I got an erection after reading your flv articles.<br />
Thanks again man. You saved my life.<br />
Liam
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-166837</link>
		<pubDate>Mon, 21 Apr 2008 03:02:04 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-166837</guid>
					<description>&lt;strong&gt;To HeavyPops ...&lt;/strong&gt;

You betcha.  You can have as many movie clips following the knob as you like.  Just use the &lt;code&gt;setInterval()&lt;/code&gt; loop update additional clips' &lt;code&gt;_x&lt;/code&gt; properties in the same way as &lt;code&gt;knob&lt;/code&gt;'s.

&lt;strong&gt;To randy ...&lt;/strong&gt;

Flash MX 2004 may not &quot;realize&quot; what the &lt;code&gt;NetStream.onMetaData&lt;/code&gt; event is, even though Flash Player 7 does.  Try this version instead (just another way of accessing the same event) and write back if you still run into problems.

&lt;code&gt;ns[&quot;onMetaData&quot;] = function(evt:Object):Void {...}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><strong>To HeavyPops &#8230;</strong></p>
<p>You betcha.  You can have as many movie clips following the knob as you like.  Just use the <code>setInterval()</code> loop update additional clips&#8217; <code>_x</code> properties in the same way as <code>knob</code>&#8217;s.</p>
<p><strong>To randy &#8230;</strong></p>
<p>Flash MX 2004 may not &#8220;realize&#8221; what the <code>NetStream.onMetaData</code> event is, even though Flash Player 7 does.  Try this version instead (just another way of accessing the same event) and write back if you still run into problems.</p>
<p><code>ns["onMetaData"] = function(evt:Object):Void {...}</code>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: randy</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-162944</link>
		<pubDate>Mon, 14 Apr 2008 22:46:40 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-162944</guid>
					<description>Hello Dave I have been doing research, on creating your own components, for video.  I came about your site, lots of great explanations  and tutorials.  I'm currently using 2004 mx. I'm getting an error in the output panel.

**Error** Scene=Scene 1, layer=as, frame=1:Line 15: There is no property with the name 'onMetaData'.
     ns.onMetaData = function(evt:Object):Void {

any help would be greatly appreciated thanks so much</description>
		<content:encoded><![CDATA[<p>Hello Dave I have been doing research, on creating your own components, for video.  I came about your site, lots of great explanations  and tutorials.  I&#8217;m currently using 2004 mx. I&#8217;m getting an error in the output panel.</p>
<p>**Error** Scene=Scene 1, layer=as, frame=1:Line 15: There is no property with the name &#8216;onMetaData&#8217;.<br />
     ns.onMetaData = function(evt:Object):Void {</p>
<p>any help would be greatly appreciated thanks so much
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: HeavyPops</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-124637</link>
		<pubDate>Sun, 27 Jan 2008 02:46:53 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-124637</guid>
					<description>Is there a way to have another movie clip follow the x position of the knob so the loadbar is lighter on the right side of the knob and darker on the other?</description>
		<content:encoded><![CDATA[<p>Is there a way to have another movie clip follow the x position of the knob so the loadbar is lighter on the right side of the knob and darker on the other?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-118401</link>
		<pubDate>Mon, 07 Jan 2008 13:56:22 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-118401</guid>
					<description>Steve,

There's a very good chance!  :)  The only question is when.  I'm writing chapters for a new book that will almost certainly carry me through the end of January, 2008 &amp;#8212; possibly into February &amp;#8212; so my blog posts may be sparse for several weeks.</description>
		<content:encoded><![CDATA[<p>Steve,</p>
<p>There&#8217;s a very good chance!  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The only question is when.  I&#8217;m writing chapters for a new book that will almost certainly carry me through the end of January, 2008 &mdash; possibly into February &mdash; so my blog posts may be sparse for several weeks.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Steve Wilkison</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-116902</link>
		<pubDate>Wed, 02 Jan 2008 01:21:37 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-116902</guid>
					<description>Any chance you might update this tutorial for AS3? I'm trying to do the exact same thing, but in AS3. I just can't seem to get a progress bar working to show the download progress of the video and can't seem to find any info on the web. This article is perfect, except I need the same info for AS3. If anyone could point me to a similar tutorial for AS3 I'd be very grateful. Thanks!</description>
		<content:encoded><![CDATA[<p>Any chance you might update this tutorial for AS3? I&#8217;m trying to do the exact same thing, but in AS3. I just can&#8217;t seem to get a progress bar working to show the download progress of the video and can&#8217;t seem to find any info on the web. This article is perfect, except I need the same info for AS3. If anyone could point me to a similar tutorial for AS3 I&#8217;d be very grateful. Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Immano</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-113350</link>
		<pubDate>Wed, 19 Dec 2007 21:49:43 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-113350</guid>
					<description>Well, luckily, I don't need the total to be displayed. As it is, handheld devices really have very little Stage space to spare, so the essential information will have to do. Besides, a progress bar will in general be sufficient for the user's need to have an approximate idea of how long the movie will be playing, at least during playback. Any further needs may be addressed through a Video Info dialog, in case.</description>
		<content:encoded><![CDATA[<p>Well, luckily, I don&#8217;t need the total to be displayed. As it is, handheld devices really have very little Stage space to spare, so the essential information will have to do. Besides, a progress bar will in general be sufficient for the user&#8217;s need to have an approximate idea of how long the movie will be playing, at least during playback. Any further needs may be addressed through a Video Info dialog, in case.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-113339</link>
		<pubDate>Wed, 19 Dec 2007 21:28:04 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/how-to-build-flv-progress-bar-part1#comment-113339</guid>
					<description>Immano,

Aha!  Yes, then you would indeed have to know the video's and SWF's framerates, then do the math to provide an approximate time counter.  If you can read the time from &lt;code&gt;NetStream&lt;/code&gt; it would likely be more accurate.  But without a known duration, of course, you wouldn't be able to say &quot;mm:ss of total mm:ss&quot; (sounds like a real challenge, in any case!).</description>
		<content:encoded><![CDATA[<p>Immano,</p>
<p>Aha!  Yes, then you would indeed have to know the video&#8217;s and SWF&#8217;s framerates, then do the math to provide an approximate time counter.  If you can read the time from <code>NetStream</code> it would likely be more accurate.  But without a known duration, of course, you wouldn&#8217;t be able to say &#8220;mm:ss of total mm:ss&#8221; (sounds like a real challenge, in any case!).
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
