<?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 Load External Flash Video (FLV) Files (AS2)</title>
	<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Wed, 19 Nov 2008 04:13:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Cou</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-294943</link>
		<pubDate>Mon, 03 Nov 2008 18:09:10 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-294943</guid>
					<description>I used the NetConnectionNetStream for a video player and when I test it swf it works perfectly. All the controls, the buffer, scrubber, everything fine. When I test in a browser, everything works but the video.  I can hear audio and scrub it, just can't see it.</description>
		<content:encoded><![CDATA[<p>I used the NetConnectionNetStream for a video player and when I test it swf it works perfectly. All the controls, the buffer, scrubber, everything fine. When I test in a browser, everything works but the video.  I can hear audio and scrub it, just can&#8217;t see it.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-287082</link>
		<pubDate>Fri, 10 Oct 2008 15:42:00 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-287082</guid>
					<description>Nisha,

WAX files are just pointers &amp;#8212; just XML documents that point to other files &amp;#8212; and the files they point to are WMA files, which Flash doesn't support.  I suppose you could use the WAX format (that particular arbitrary XML structure) and have it point to MP3s instead.  In that case, you'd have to load that WAX file as you would any other XML document and parse it to locate the actual file names.

In your &lt;code&gt;ns.play()&lt;/code&gt; line, you're asking the &lt;code&gt;NetStream&lt;/code&gt; instance to play an XML file.  It can't, so it sounds like your operating system is doing the best it can with the requested file.  Instead, you need that parameter to point to a Flash-compatible audio file.  Actually, this shouldn't be an audio file at all:  it needs to be a video file!  ;)

If you want to build an audio player, you should be using the &lt;code&gt;Sound&lt;/code&gt; class ... you can omit &lt;code&gt;NetConnection&lt;/code&gt;, &lt;code&gt;NetStream&lt;/code&gt;, and &lt;code&gt;Video&lt;/code&gt; altogether.</description>
		<content:encoded><![CDATA[<p>Nisha,</p>
<p>WAX files are just pointers &mdash; just XML documents that point to other files &mdash; and the files they point to are WMA files, which Flash doesn&#8217;t support.  I suppose you could use the WAX format (that particular arbitrary XML structure) and have it point to MP3s instead.  In that case, you&#8217;d have to load that WAX file as you would any other XML document and parse it to locate the actual file names.</p>
<p>In your <code>ns.play()</code> line, you&#8217;re asking the <code>NetStream</code> instance to play an XML file.  It can&#8217;t, so it sounds like your operating system is doing the best it can with the requested file.  Instead, you need that parameter to point to a Flash-compatible audio file.  Actually, this shouldn&#8217;t be an audio file at all:  it needs to be a video file!  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you want to build an audio player, you should be using the <code>Sound</code> class &#8230; you can omit <code>NetConnection</code>, <code>NetStream</code>, and <code>Video</code> altogether.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Nisha</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-287069</link>
		<pubDate>Fri, 10 Oct 2008 14:43:01 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-287069</guid>
					<description>Hi David,

I found your blog very interesting. In fact i have a similar kind of requirement where i want to develop an audio player in flash that can play .wax files.
The url of the file goes like this:
http://[sitename]/[filename].wax

and my code goes like this:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
videoPlayer.attachVideo(ns);
ns.play(&quot;http://[sitename]/[filename].wax&quot;);

Just tried out the same code that i saw above.
This audiostream url when opened in browser, plays the song in the system default player.
But its not working.
Can you help me out?

Regards,
Nisha</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>I found your blog very interesting. In fact i have a similar kind of requirement where i want to develop an audio player in flash that can play .wax files.<br />
The url of the file goes like this:<br />
<a href='http://[sitename]/[filename].wax' rel='nofollow'>http://[sitename]/[filename].wax</a></p>
<p>and my code goes like this:<br />
var nc:NetConnection = new NetConnection();<br />
nc.connect(null);<br />
var ns:NetStream = new NetStream(nc);<br />
videoPlayer.attachVideo(ns);<br />
ns.play(&#8221;http://[sitename]/[filename].wax&#8221;);</p>
<p>Just tried out the same code that i saw above.<br />
This audiostream url when opened in browser, plays the song in the system default player.<br />
But its not working.<br />
Can you help me out?</p>
<p>Regards,<br />
Nisha
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-280961</link>
		<pubDate>Mon, 29 Sep 2008 00:48:21 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-280961</guid>
					<description>Animesh,

Check out this article, &quot;&lt;a href=&quot;http://www.quip.net/blog/2007/flash/how-to-use-flash-video-cue-points&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;How to Use Flash Video (FLV) Cue Points&lt;/a&gt;.&quot;  That should give you a good start, if not meet your needs entirely.  Write back in a comment for that article if you have specific questions after reading and experimenting.  :)</description>
		<content:encoded><![CDATA[<p>Animesh,</p>
<p>Check out this article, &#8220;<a href="http://www.quip.net/blog/2007/flash/how-to-use-flash-video-cue-points" target="_blank" rel="nofollow">How to Use Flash Video (FLV) Cue Points</a>.&#8221;  That should give you a good start, if not meet your needs entirely.  Write back in a comment for that article if you have specific questions after reading and experimenting.  <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: Animesh</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-280397</link>
		<pubDate>Sun, 28 Sep 2008 07:57:54 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-280397</guid>
					<description>Dear David

I want to use curPoint in my FLVPlayer in Action script 2 . Could you suggest me how can i use it as well as handle the event for the same.

Regards
Animesh</description>
		<content:encoded><![CDATA[<p>Dear David</p>
<p>I want to use curPoint in my FLVPlayer in Action script 2 . Could you suggest me how can i use it as well as handle the event for the same.</p>
<p>Regards<br />
Animesh
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Balaji M K</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-279024</link>
		<pubDate>Fri, 26 Sep 2008 06:19:36 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-279024</guid>
					<description>David,

Thanks for the prompt reply.

But, we require IIS to be set up in the destination machine if we want to use the http instead of UNC, that is almost not possible in my scenario.

For now, we have decided to copy the files temporarily to the local folder and clean up when done playing locally.

once again, Thanks for your prompt reply.

Cheers. :)</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>Thanks for the prompt reply.</p>
<p>But, we require IIS to be set up in the destination machine if we want to use the http instead of UNC, that is almost not possible in my scenario.</p>
<p>For now, we have decided to copy the files temporarily to the local folder and clean up when done playing locally.</p>
<p>once again, Thanks for your prompt reply.</p>
<p>Cheers. <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: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-278854</link>
		<pubDate>Thu, 25 Sep 2008 18:20:02 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-278854</guid>
					<description>&lt;strong&gt;To Sumantra ...&lt;/strong&gt;

&lt;blockquote&gt;I have read your loading external flv file, but i want to a continuous play ie in loop.&lt;/blockquote&gt;

For that, you need to detect the end of the video and instruct the FLV to seek to the beginning.  You can see several approaches in &quot;&lt;a href=&quot;http://www.quip.net/blog/2007/flash/actionscript-20/how-to-determine-completion-of-flv&quot; target=&quot;_blank&quot;&gt;How to Determine the Completion of a Flash Video (FLV) File (AS2)&lt;/a&gt;,&quot; but in a nutshell (for non-FLVPlayback usage) you'll write an event handler for the &lt;code&gt;NetStream.onStatus&lt;/code&gt; event.

&lt;pre&gt;&lt;code&gt;var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
videoPlayer.attachVideo(ns);
ns.play(&quot;externalVideo.flv&quot;);

ns.onStatus = function(evt:Object):Void {
  if (evt.code == &amp;#34;NetStream.Play.Stop&amp;#34;) {
    this.seek(0);
  }
};&lt;/code&gt;&lt;/pre&gt;

&lt;strong&gt;To John ...&lt;/strong&gt;

&lt;blockquote&gt;At first I had the same problem as a few other of the comments on here - audio, but no video. I changed the instance name from 'videoplayer' to 'vid_player' and now I get both.&lt;/blockquote&gt;

By using &lt;code&gt;videoplayer&lt;/code&gt; (all lowercase), you might have been tapping, by coincidence, into a reserved word.  That happens to me every now and then, it's frustrating because generally speaking, you can name a variable whatever you like, as long as you adhere to the usual caveats (not punctuation other than &lt;code&gt;$&lt;/code&gt; and &lt;code&gt;_&lt;/code&gt;, no starting a variable name with a number, etc.).

&lt;blockquote&gt;One more thing - did you ever solve this problem?

Quick question: is there a way to add some sort of listener in AS to see when the FLV is finished and send the playhead on to the next frame? Some kind of if/else statement?&lt;/blockquote&gt;

Wow, that was a long time ago!  I do remember Mark's question, and in all this time, I've come to the conclusion that the &lt;code&gt;onStatus&lt;/code&gt; approach &amp;#8212; the one I just suggested to Sumantra &amp;#8212; is the easiest way to go.  (I hinted at that to Mark, way back when, but was more comfortable at the time with the solution I ended up posted to the link in my previous reply.  Unlike my suggestion to Sumantra, you wouldn't invoke &lt;code&gt;seek()&lt;/code&gt; in that event handler.  Instead, you would invoke &lt;code&gt;MovieClip.play()&lt;/code&gt;, &lt;code&gt;MovieClip.gotoAndPlay()&lt;/code&gt;, or the like, in place of &lt;code&gt;this.seek(0)&lt;/code&gt;.

&lt;strong&gt;To Joseph ...&lt;/strong&gt;

&lt;blockquote&gt;I am currently trying to find a way to auto load a FLV into a swf from an XML document.&lt;/blockquote&gt;

I haven't yet written a blog tutorial on loading FLVs from XML, but the good thing about the process is, once you learn it, you can reuse the same principle for any sort of file.  There's nothing special about XML in relation to FLVs versus MP3s versus JPGs.  To an extent, you could even start by listing out your FLVs in an array, then setting up a variable to count through the indexes of that array.  In terms of the suggestions in my replies to John and Sumatra, you could increment that counter variable at the end of each video, like this:

&lt;pre&gt;&lt;code&gt;// declared earlier
var counter:Number = 0;
var videos:Array = new Array(&amp;#34;a.flv&amp;#34;, &amp;#34;b.flv&amp;#34;, &amp;#34;c.flv&amp;#34;);

// then the standard NetConnection/NetStream code ...

// then the onStatus event handler
ns.onStatus = function(evt:Object):Void {
  if (evt.code == &amp;#34;NetStream.Play.Stop&amp;#34;) {
    counter++;
    ns.play(videos[counter]);
  }
};&lt;/code&gt;&lt;/pre&gt;

Of course, doing it that way means the counter would eventually exceed the number of elements in the array.  You could work around that with an &lt;code&gt;if&lt;/code&gt; statement:

&lt;pre&gt;&lt;code&gt;ns.onStatus = function(evt:Object):Void {
  if (evt.code == &amp;#34;NetStream.Play.Stop&amp;#34;) {
    counter++;
    if (counter &lt; videos.length - 1) {
      ns.play(videos[counter]);
    }
  }
};&lt;/code&gt;&lt;/pre&gt;

For XML, it would be similar enough (and would depend, of course, on the arrangement of XML nodes you decide to use).  In the case of XML, you would (somewhere along the line) have a series of, say, &lt;code&gt;&amp;#60;video&amp;#62;&lt;/code&gt; tags, and your counter variable would loop through those in the same way.

Does that help get you started?

&lt;strong&gt;To Jan ...&lt;/strong&gt;

&lt;blockquote&gt;I am trying to load my flv, (it’s working) send it to a frame label after it is finished playing.  the colde I am using does not go to the next frame, can you see what I am doing wrong?&lt;/blockquote&gt;

The culprit is this line here:

&lt;code&gt;video1.addEventListener(VideoEvent.COMPLETE, onPlaybackComplete);&lt;/code&gt;

... because you're associating your event handler with an instance named &lt;code&gt;video1&lt;/code&gt;, instead of the variable name you actually give your &lt;code&gt;FLVPlayback&lt;/code&gt; instance (&lt;code&gt;flvPlayer&lt;/code&gt;).

&lt;strong&gt;To Balaji ...&lt;/strong&gt;

I'm afraid I haven't used UNC paths in client work, so I don't have any personal insight into why you might be seeing the issues you're seeing.  I have heard from people who do use (or who have used) UNC paths successfully, but I don't know if they were using IIS, Apache, or some other software.

Sorry I can't help you on this one!  If there's any way you can route that path through an HTTP address, that's worth a shot, for sure.</description>
		<content:encoded><![CDATA[<p><strong>To Sumantra &#8230;</strong></p>
<blockquote><p>I have read your loading external flv file, but i want to a continuous play ie in loop.</p></blockquote>
<p>For that, you need to detect the end of the video and instruct the FLV to seek to the beginning.  You can see several approaches in &#8220;<a href="http://www.quip.net/blog/2007/flash/actionscript-20/how-to-determine-completion-of-flv" target="_blank">How to Determine the Completion of a Flash Video (FLV) File (AS2)</a>,&#8221; but in a nutshell (for non-FLVPlayback usage) you&#8217;ll write an event handler for the <code>NetStream.onStatus</code> event.</p>
<pre><code>var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
videoPlayer.attachVideo(ns);
ns.play("externalVideo.flv");

ns.onStatus = function(evt:Object):Void {
  if (evt.code == &quot;NetStream.Play.Stop&quot;) {
    this.seek(0);
  }
};</code></pre>
<p><strong>To John &#8230;</strong></p>
<blockquote><p>At first I had the same problem as a few other of the comments on here - audio, but no video. I changed the instance name from &#8216;videoplayer&#8217; to &#8216;vid_player&#8217; and now I get both.</p></blockquote>
<p>By using <code>videoplayer</code> (all lowercase), you might have been tapping, by coincidence, into a reserved word.  That happens to me every now and then, it&#8217;s frustrating because generally speaking, you can name a variable whatever you like, as long as you adhere to the usual caveats (not punctuation other than <code>$</code> and <code>_</code>, no starting a variable name with a number, etc.).</p>
<blockquote><p>One more thing - did you ever solve this problem?</p>
<p>Quick question: is there a way to add some sort of listener in AS to see when the FLV is finished and send the playhead on to the next frame? Some kind of if/else statement?</p></blockquote>
<p>Wow, that was a long time ago!  I do remember Mark&#8217;s question, and in all this time, I&#8217;ve come to the conclusion that the <code>onStatus</code> approach &mdash; the one I just suggested to Sumantra &mdash; is the easiest way to go.  (I hinted at that to Mark, way back when, but was more comfortable at the time with the solution I ended up posted to the link in my previous reply.  Unlike my suggestion to Sumantra, you wouldn&#8217;t invoke <code>seek()</code> in that event handler.  Instead, you would invoke <code>MovieClip.play()</code>, <code>MovieClip.gotoAndPlay()</code>, or the like, in place of <code>this.seek(0)</code>.</p>
<p><strong>To Joseph &#8230;</strong></p>
<blockquote><p>I am currently trying to find a way to auto load a FLV into a swf from an XML document.</p></blockquote>
<p>I haven&#8217;t yet written a blog tutorial on loading FLVs from XML, but the good thing about the process is, once you learn it, you can reuse the same principle for any sort of file.  There&#8217;s nothing special about XML in relation to FLVs versus MP3s versus JPGs.  To an extent, you could even start by listing out your FLVs in an array, then setting up a variable to count through the indexes of that array.  In terms of the suggestions in my replies to John and Sumatra, you could increment that counter variable at the end of each video, like this:</p>
<pre><code>// declared earlier
var counter:Number = 0;
var videos:Array = new Array(&quot;a.flv&quot;, &quot;b.flv&quot;, &quot;c.flv&quot;);

// then the standard NetConnection/NetStream code ...

// then the onStatus event handler
ns.onStatus = function(evt:Object):Void {
  if (evt.code == &quot;NetStream.Play.Stop&quot;) {
    counter++;
    ns.play(videos[counter]);
  }
};</code></pre>
<p>Of course, doing it that way means the counter would eventually exceed the number of elements in the array.  You could work around that with an <code>if</code> statement:</p>
<pre><code>ns.onStatus = function(evt:Object):Void {
  if (evt.code == &quot;NetStream.Play.Stop&quot;) {
    counter++;
    if (counter < videos.length - 1) {
      ns.play(videos[counter]);
    }
  }
};</code></pre>
<p>For XML, it would be similar enough (and would depend, of course, on the arrangement of XML nodes you decide to use).  In the case of XML, you would (somewhere along the line) have a series of, say, <code>&lt;video&gt;</code> tags, and your counter variable would loop through those in the same way.</p>
<p>Does that help get you started?</p>
<p><strong>To Jan &#8230;</strong></p>
<blockquote><p>I am trying to load my flv, (it’s working) send it to a frame label after it is finished playing.  the colde I am using does not go to the next frame, can you see what I am doing wrong?</p></blockquote>
<p>The culprit is this line here:</p>
<p><code>video1.addEventListener(VideoEvent.COMPLETE, onPlaybackComplete);</code></p>
<p>&#8230; because you&#8217;re associating your event handler with an instance named <code>video1</code>, instead of the variable name you actually give your <code>FLVPlayback</code> instance (<code>flvPlayer</code>).</p>
<p><strong>To Balaji &#8230;</strong></p>
<p>I&#8217;m afraid I haven&#8217;t used UNC paths in client work, so I don&#8217;t have any personal insight into why you might be seeing the issues you&#8217;re seeing.  I have heard from people who do use (or who have used) UNC paths successfully, but I don&#8217;t know if they were using IIS, Apache, or some other software.</p>
<p>Sorry I can&#8217;t help you on this one!  If there&#8217;s any way you can route that path through an HTTP address, that&#8217;s worth a shot, for sure.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Balaji M K</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-278756</link>
		<pubDate>Thu, 25 Sep 2008 10:57:56 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-278756</guid>
					<description>P.S:

I hardcoded the path in the code as

flvurl = “\\\\SYS02\\Transfer\\S2.flv”;
flv.contentPath = flvurl;

even in this scenario, it works fine when access the SWF locally (c:\player.swf), but not when accessed in Webserver (http://SYS01/mySite/player.swf).

Any clue?

Cheers.</description>
		<content:encoded><![CDATA[<p>P.S:</p>
<p>I hardcoded the path in the code as</p>
<p>flvurl = “\\\\SYS02\\Transfer\\S2.flv”;<br />
flv.contentPath = flvurl;</p>
<p>even in this scenario, it works fine when access the SWF locally (c:\player.swf), but not when accessed in Webserver (http://SYS01/mySite/player.swf).</p>
<p>Any clue?</p>
<p>Cheers.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Balaji M K</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-278742</link>
		<pubDate>Thu, 25 Sep 2008 09:56:49 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-278742</guid>
					<description>Hi,

I am new to Flash development. I have created a flash player. It was working fine with I tested locally (by double clicking the file in the folder)

I have used both
c:\Player.swf?flvurl=S1.flv
c:\Player.swf?flvurl=\\SYS02\transfer\S2.flv

both were working fine.

When I uploaded the file in IIS server (SYS01), it stops playing. It plays the
http://SYS01/mySite/Player.swf?flvurl=S1.flv
but not
http://SYS01/mySite/Player.swf?flvurl=\\SYS02\transfer\S2.flv

Player.swf and S1.flv are in the same folder.
S2.flv is in Machine SYS02, in which SYS01 user is administrator. The shared folder is given full access to Everyone.

in SYS02 machine’s Administrative tool -&amp;#62; computer management -&amp;#62; Open session and file, i can see the S2 file being accessed whenever I access the site. But It’s not playing.

Can someone tell me why?

This is quite urgent for me.
Please mail me if you have any answer.

Many Thanks.

Cheers,
Bala
balaji.mk@gmail.com</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am new to Flash development. I have created a flash player. It was working fine with I tested locally (by double clicking the file in the folder)</p>
<p>I have used both<br />
c:\Player.swf?flvurl=S1.flv<br />
c:\Player.swf?flvurl=\\SYS02\transfer\S2.flv</p>
<p>both were working fine.</p>
<p>When I uploaded the file in IIS server (SYS01), it stops playing. It plays the<br />
<a href='http://SYS01/mySite/Player.swf?flvurl=S1.flv' rel='nofollow'>http://SYS01/mySite/Player.swf?flvurl=S1.flv</a><br />
but not<br />
<a href='http://SYS01/mySite/Player.swf?flvurl=\\SYS02\transfer\S2.flv' rel='nofollow'>http://SYS01/mySite/Player.swf?flvurl=\\SYS02\transfer\S2.flv</a></p>
<p>Player.swf and S1.flv are in the same folder.<br />
S2.flv is in Machine SYS02, in which SYS01 user is administrator. The shared folder is given full access to Everyone.</p>
<p>in SYS02 machine’s Administrative tool -&gt; computer management -&gt; Open session and file, i can see the S2 file being accessed whenever I access the site. But It’s not playing.</p>
<p>Can someone tell me why?</p>
<p>This is quite urgent for me.<br />
Please mail me if you have any answer.</p>
<p>Many Thanks.</p>
<p>Cheers,<br />
Bala<br />
<a href="mailto:balaji.mk@gmail.com">balaji.mk@gmail.com</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jan</title>
		<link>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-278608</link>
		<pubDate>Wed, 24 Sep 2008 19:34:55 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/how-to-load-external-video#comment-278608</guid>
					<description>Hi David,
I am trying to load my flv, (it's working) send it to a frame label after it is finished playing.
the colde I am using does not go to the next frame, can you see what I am doing wrong?
The video loads and plays, but then just stops and does not proceed to frame label &quot;alice&quot;
thanks!
[code]

//actionscript 3.0
this.stop();

import fl.video.*;

var flvPlayer:FLVPlayback = new FLVPlayback();
addChild(flvPlayer);

flvPlayer.source = &quot;http://www.helpexamples.com/flash/video/water.flv&quot;;

video1.addEventListener(VideoEvent.COMPLETE, onPlaybackComplete);
 
function onPlaybackComplete(ev: VideoEvent):void {
     gotoAndStop(&quot;alice&quot;);
}


[/code]</description>
		<content:encoded><![CDATA[<p>Hi David,<br />
I am trying to load my flv, (it&#8217;s working) send it to a frame label after it is finished playing.<br />
the colde I am using does not go to the next frame, can you see what I am doing wrong?<br />
The video loads and plays, but then just stops and does not proceed to frame label &#8220;alice&#8221;<br />
thanks!<br />
[code]</p>
<p>//actionscript 3.0<br />
this.stop();</p>
<p>import fl.video.*;</p>
<p>var flvPlayer:FLVPlayback = new FLVPlayback();<br />
addChild(flvPlayer);</p>
<p>flvPlayer.source = &#8220;http://www.helpexamples.com/flash/video/water.flv&#8221;;</p>
<p>video1.addEventListener(VideoEvent.COMPLETE, onPlaybackComplete);</p>
<p>function onPlaybackComplete(ev: VideoEvent):void {<br />
     gotoAndStop(&#8221;alice&#8221;);<br />
}</p>
<p>[/code]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
