

































<?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 (AS3)</title>
	<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Tue, 07 Feb 2012 19:56:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: adam</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-545722</link>
		<pubDate>Tue, 12 Jul 2011 10:37:28 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-545722</guid>
					<description>I forgot to mention, I have also added a cue point to the end of the Flash video file hoping that I could some how use that as a marker to tell that the video has finished but I have had no luck with this either. Im not even sure that this a good way to try and achieve this.</description>
		<content:encoded><![CDATA[<p>I forgot to mention, I have also added a cue point to the end of the Flash video file hoping that I could some how use that as a marker to tell that the video has finished but I have had no luck with this either. Im not even sure that this a good way to try and achieve this.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: adam</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-545716</link>
		<pubDate>Tue, 12 Jul 2011 10:28:00 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-545716</guid>
					<description>Hi 

I am still really new to flash and i need to create a multiplayer video project. So far I have managed to create the multiplayer video in AS3 using the FLV Playback component and some buttons which load content into the FLV player. However i need the video to jump to another frame, or close upon completion. Here is the code I have so far:

stop();

function vid1(e:Event) {
	vidPlayer.source = &quot;clip1.flv&quot;;
}
vid1_btn.addEventListener(MouseEvent.CLICK, vid1);

function vid2(e:Event) {
	vidPlayer.source = &quot;clip2.flv&quot;;
}
vid2_btn.addEventListener(MouseEvent.CLICK, vid2);

function end(e:Event) {
	vidPlayer.stop()
}
end_btn.addEventListener(MouseEvent.CLICK, end);

function jump(e:Event) {
	gotoAndPlay(3);
}
end_btn.addEventListener(MouseEvent.CLICK, jump)


 Any help would be much appreciated. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>I am still really new to flash and i need to create a multiplayer video project. So far I have managed to create the multiplayer video in AS3 using the FLV Playback component and some buttons which load content into the FLV player. However i need the video to jump to another frame, or close upon completion. Here is the code I have so far:</p>
<p>stop();</p>
<p>function vid1(e:Event) {<br />
	vidPlayer.source = &#8220;clip1.flv&#8221;;<br />
}<br />
vid1_btn.addEventListener(MouseEvent.CLICK, vid1);</p>
<p>function vid2(e:Event) {<br />
	vidPlayer.source = &#8220;clip2.flv&#8221;;<br />
}<br />
vid2_btn.addEventListener(MouseEvent.CLICK, vid2);</p>
<p>function end(e:Event) {<br />
	vidPlayer.stop()<br />
}<br />
end_btn.addEventListener(MouseEvent.CLICK, end);</p>
<p>function jump(e:Event) {<br />
	gotoAndPlay(3);<br />
}<br />
end_btn.addEventListener(MouseEvent.CLICK, jump)</p>
<p> Any help would be much appreciated. Thanks in advance.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Petka</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-495867</link>
		<pubDate>Sat, 04 Dec 2010 04:32:56 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-495867</guid>
					<description>Hi David, 
Thanks so much for all the info here, been so handy as I'm learning this.

However I've really hit a wall now... hope you might be able to help!

I'm building a site that loads 3 swfs. The first is an intro that then loads the next (a menu) which then loads the 3rd (a portfolio of videos - behind the menu). I'd like the portfolio swf to play streamed flvs (currently only a demo flv). 

Even when I clear the cache, it works well when the swfs are tested locally (whether the stream is local or online), but when I upload the swfs to my server (and the cache is cleared) the streaming behaves very strange - it plays the audio immediately and then some secs later plays the video &amp;#38; audio (again) over the top of the first instance of audio.

Here is a link: http://www.dianascheunemann.com/drivebyshootvideo

Currently the flv is streamed from a different host. Curiously, if I bi-pass the first two swfs and upload an index.html that goes go direct to the 3rd, the stream works. If I have the index.html go to the 2nd (the menu, which then goes to the 3rd) it does not work.

This leads me to conclude that there is some problem with using the netConnection/netStream in an external swf, but I'm lost as to the solution. 

Things I've tried:
I've hosted the swfs and streamed the flvs between 3 different hosts
I've tested in Firefox, Safari and Chrome
I've also tried using FLVplayback instead of streaming, with similar results

Am I missing something obvious?</description>
		<content:encoded><![CDATA[<p>Hi David,<br />
Thanks so much for all the info here, been so handy as I&#8217;m learning this.</p>
<p>However I&#8217;ve really hit a wall now&#8230; hope you might be able to help!</p>
<p>I&#8217;m building a site that loads 3 swfs. The first is an intro that then loads the next (a menu) which then loads the 3rd (a portfolio of videos - behind the menu). I&#8217;d like the portfolio swf to play streamed flvs (currently only a demo flv). </p>
<p>Even when I clear the cache, it works well when the swfs are tested locally (whether the stream is local or online), but when I upload the swfs to my server (and the cache is cleared) the streaming behaves very strange - it plays the audio immediately and then some secs later plays the video &amp; audio (again) over the top of the first instance of audio.</p>
<p>Here is a link: <a href='http://www.dianascheunemann.com/drivebyshootvideo' rel='nofollow'>http://www.dianascheunemann.com/drivebyshootvideo</a></p>
<p>Currently the flv is streamed from a different host. Curiously, if I bi-pass the first two swfs and upload an index.html that goes go direct to the 3rd, the stream works. If I have the index.html go to the 2nd (the menu, which then goes to the 3rd) it does not work.</p>
<p>This leads me to conclude that there is some problem with using the netConnection/netStream in an external swf, but I&#8217;m lost as to the solution. </p>
<p>Things I&#8217;ve tried:<br />
I&#8217;ve hosted the swfs and streamed the flvs between 3 different hosts<br />
I&#8217;ve tested in Firefox, Safari and Chrome<br />
I&#8217;ve also tried using FLVplayback instead of streaming, with similar results</p>
<p>Am I missing something obvious?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Kurt</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-463563</link>
		<pubDate>Tue, 15 Jun 2010 03:15:32 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-463563</guid>
					<description>Hi David,

Is there a way to specify the X and Y locations of the video within this script?</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>Is there a way to specify the X and Y locations of the video within this script?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Patrice Poliquin</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-433477</link>
		<pubDate>Tue, 05 Jan 2010 18:18:48 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-433477</guid>
					<description>Hi, I would like to know if there is a possible way to place Text over the video. The .flv seems to be a the top of the z-index in the .swf. Can some 1 tell me a way I could be able to place something over the video (Like if the video was in background).</description>
		<content:encoded><![CDATA[<p>Hi, I would like to know if there is a possible way to place Text over the video. The .flv seems to be a the top of the z-index in the .swf. Can some 1 tell me a way I could be able to place something over the video (Like if the video was in background).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Nate</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-379419</link>
		<pubDate>Tue, 07 Apr 2009 01:10:27 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-379419</guid>
					<description>nevermind, got it figured out :)</description>
		<content:encoded><![CDATA[<p>nevermind, got it figured out <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: Nate</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-370122</link>
		<pubDate>Wed, 25 Mar 2009 00:13:45 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-370122</guid>
					<description>David,

I've got my FLVs up and running now, but I'm trying to figure out how to simply remove the FLV after is has completed playing so it is no longer on screen.  I tried using this code,

ns.addEventListener(
  NetStatusEvent.NET_STATUS,
  function(evt:NetStatusEvent):void {
    if (evt.info.code == &quot;NetStream.Play.Stop&quot;) {
      removeChild(vid);
    }
  }
);

But I think I'm not understanding this code.  Is there a way to detect when the FLV has completed in AS3 and then to removeChild?</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>I&#8217;ve got my FLVs up and running now, but I&#8217;m trying to figure out how to simply remove the FLV after is has completed playing so it is no longer on screen.  I tried using this code,</p>
<p>ns.addEventListener(<br />
  NetStatusEvent.NET_STATUS,<br />
  function(evt:NetStatusEvent):void {<br />
    if (evt.info.code == &#8220;NetStream.Play.Stop&#8221;) {<br />
      removeChild(vid);<br />
    }<br />
  }<br />
);</p>
<p>But I think I&#8217;m not understanding this code.  Is there a way to detect when the FLV has completed in AS3 and then to removeChild?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Shawn Collins</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-351618</link>
		<pubDate>Tue, 17 Feb 2009 20:08:04 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-351618</guid>
					<description>Hello David,

I'm using your tutorial to learn how to create a custom connection to a FLV file and I'm wondering if you have any thoughts about how one would use the netstream connection with multiple videos. Basically I'm trying to load 9 small FLV clips simultaneously and have them play on rollover.

Here is an example: http://design.globalonenessproject.org/screens/video_wall/videoWall_component_300kbs.html

In all the FLV loading examples and tutorials I've seen on the web, the ns.play is always associated with a single FLV file. (In your example you have &quot;ns.play(&quot;externalVideo.flv&quot;);). Do I need to repeat the netstream 9 times or is there a more elegant solution?</description>
		<content:encoded><![CDATA[<p>Hello David,</p>
<p>I&#8217;m using your tutorial to learn how to create a custom connection to a FLV file and I&#8217;m wondering if you have any thoughts about how one would use the netstream connection with multiple videos. Basically I&#8217;m trying to load 9 small FLV clips simultaneously and have them play on rollover.</p>
<p>Here is an example: <a href='http://design.globalonenessproject.org/screens/video_wall/videoWall_component_300kbs.html' rel='nofollow'>http://design.globalonenessproject.org/screens/video_wall/videoWall_component_300kbs.html</a></p>
<p>In all the FLV loading examples and tutorials I&#8217;ve seen on the web, the ns.play is always associated with a single FLV file. (In your example you have &#8220;ns.play(&#8221;externalVideo.flv&#8221;);). Do I need to repeat the netstream 9 times or is there a more elegant solution?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-332702</link>
		<pubDate>Mon, 05 Jan 2009 15:20:50 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-332702</guid>
					<description>&lt;strong&gt;To Alex ...&lt;/strong&gt;

Glad to hear that!  :)

&lt;strong&gt;To guan0 ...&lt;/strong&gt;

That error message probably means your video file isn't where you think it is, or maybe you mistyped the name of your video file.  Double check to make sure you're referencing the exact spelling (I often copy/paste from the actual file's name) and the exact folder location.</description>
		<content:encoded><![CDATA[<p><strong>To Alex &#8230;</strong></p>
<p>Glad to hear that!  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>To guan0 &#8230;</strong></p>
<p>That error message probably means your video file isn&#8217;t where you think it is, or maybe you mistyped the name of your video file.  Double check to make sure you&#8217;re referencing the exact spelling (I often copy/paste from the actual file&#8217;s name) and the exact folder location.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: guan0</title>
		<link>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-332084</link>
		<pubDate>Sun, 04 Jan 2009 20:27:55 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/how-to-load-external-video-as3#comment-332084</guid>
					<description>with the code you gave on the tutoria, i had this problem:

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound
at MenuVideo_fla::MainTimeline/MenuVideo_fla::frame5()

can you solve it for me?

hug</description>
		<content:encoded><![CDATA[<p>with the code you gave on the tutoria, i had this problem:</p>
<p>Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound<br />
at MenuVideo_fla::MainTimeline/MenuVideo_fla::frame5()</p>
<p>can you solve it for me?</p>
<p>hug
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

