<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Clearing the video on a Flex VideoDisplay control</title>
	<atom:link href="http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sugumar</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-10346</link>
		<dc:creator>sugumar</dc:creator>
		<pubDate>Tue, 31 Jan 2012 10:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-10346</guid>
		<description>sir,
help me out please..
i am developing video chatting..using asp.net .
i am using fluorine fx streaming server.
iam going to integrate flex with asp.net....

can you guide me for my project...

i want to knoe how to set up the server...using iis..

thank you....</description>
		<content:encoded><![CDATA[<p>sir,<br />
help me out please..<br />
i am developing video chatting..using asp.net .<br />
i am using fluorine fx streaming server.<br />
iam going to integrate flex with asp.net&#8230;.</p>
<p>can you guide me for my project&#8230;</p>
<p>i want to knoe how to set up the server&#8230;using iis..</p>
<p>thank you&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wasim</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-10334</link>
		<dc:creator>Wasim</dc:creator>
		<pubDate>Mon, 23 Jan 2012 10:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-10334</guid>
		<description>is it supported on Flex3? 
because I copied the 1st example and paste but I got an error, it is not working!!</description>
		<content:encoded><![CDATA[<p>is it supported on Flex3?<br />
because I copied the 1st example and paste but I got an error, it is not working!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto Prieto</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-8257</link>
		<dc:creator>Roberto Prieto</dc:creator>
		<pubDate>Wed, 25 Aug 2010 12:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-8257</guid>
		<description>Hi Jerome.

Thanx for the idea, but in my code don´t work and I don´t  now why.

My code is this

&lt;code&gt;
 private function catchCam():void{
	 					 
		 	this._vid=new Video();
	 		this._vid.width=320;
	 		this._vid.height=240;
	 			 		
	 		this.vd_Cam.addChild(this._vid);	 			 			 		
	 		this.cam=Camera.getCamera(this.cbCam.selectedIndex.toString());	 		 		 			 					
		 	
		 	if (!this.cam) {		 		
		 		this._vid.attachCamera(null);		 		
		 		this._vid.clear();							
		 	}else{		 	
		 		this._vid.attachCamera(this.cam); 
		 	}	 					 			 	
		}
&lt;/code&gt;

note: vd_Cam it´s a videoDisplay Object.

The problem is that when execute 
        this._vid.attachCamera(null);		 		
	this._vid.clear();	

The camera never deatach of the videoDisplay Object and never clear the videoDisplay Object. By the way debugging the code i´m sure that this sentences are executed.

Why is this happening to me?, any idea?

Thanx</description>
		<content:encoded><![CDATA[<p>Hi Jerome.</p>
<p>Thanx for the idea, but in my code don´t work and I don´t  now why.</p>
<p>My code is this</p>
<p><code><br />
 private function catchCam():void{</p>
<p>		 	this._vid=new Video();<br />
	 		this._vid.width=320;<br />
	 		this._vid.height=240;</p>
<p>	 		this.vd_Cam.addChild(this._vid);<br />
	 		this.cam=Camera.getCamera(this.cbCam.selectedIndex.toString());	 		 		 			 					</p>
<p>		 	if (!this.cam) {<br />
		 		this._vid.attachCamera(null);<br />
		 		this._vid.clear();<br />
		 	}else{<br />
		 		this._vid.attachCamera(this.cam);<br />
		 	}<br />
		}<br />
</code></p>
<p>note: vd_Cam it´s a videoDisplay Object.</p>
<p>The problem is that when execute<br />
        this._vid.attachCamera(null);<br />
	this._vid.clear();	</p>
<p>The camera never deatach of the videoDisplay Object and never clear the videoDisplay Object. By the way debugging the code i´m sure that this sentences are executed.</p>
<p>Why is this happening to me?, any idea?</p>
<p>Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vibs</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-8070</link>
		<dc:creator>Vibs</dc:creator>
		<pubDate>Mon, 05 Jul 2010 17:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-8070</guid>
		<description>Why don&#039;t extend a UIComponent class to create a custom Video Component .. According to my personal opinion VideoDisplay component of Flex 3.5 sucks .</description>
		<content:encoded><![CDATA[<p>Why don&#8217;t extend a UIComponent class to create a custom Video Component .. According to my personal opinion VideoDisplay component of Flex 3.5 sucks .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerome</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-8009</link>
		<dc:creator>jerome</dc:creator>
		<pubDate>Fri, 25 Jun 2010 18:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-8009</guid>
		<description>ok nevermind I got clear() working.  I had to use .clear() on the Video object that was attached to the VideoDisplay</description>
		<content:encoded><![CDATA[<p>ok nevermind I got clear() working.  I had to use .clear() on the Video object that was attached to the VideoDisplay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerome</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-8003</link>
		<dc:creator>jerome</dc:creator>
		<pubDate>Fri, 25 Jun 2010 04:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-8003</guid>
		<description>setting a null source does not seem to have any effect either.  I&#039;m using a Video attached to a VideoDisplay (something like VideoDisplay.addChild(Video)</description>
		<content:encoded><![CDATA[<p>setting a null source does not seem to have any effect either.  I&#8217;m using a Video attached to a VideoDisplay (something like VideoDisplay.addChild(Video)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-7868</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Mon, 07 Jun 2010 06:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-7868</guid>
		<description>@jerome,

If &lt;code&gt;clear()&lt;/code&gt; doesn&#039;t work, maybe try setting a &lt;em&gt;null&lt;/em&gt; source.

Peter</description>
		<content:encoded><![CDATA[<p>@jerome,</p>
<p>If <code>clear()</code> doesn&#8217;t work, maybe try setting a <em>null</em> source.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerome</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-7867</link>
		<dc:creator>jerome</dc:creator>
		<pubDate>Mon, 07 Jun 2010 05:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-7867</guid>
		<description>Anyone know how to clear a videoDisplay that has been showing a live stream?  .pause() does not seem to have any effect</description>
		<content:encoded><![CDATA[<p>Anyone know how to clear a videoDisplay that has been showing a live stream?  .pause() does not seem to have any effect</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-6055</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 19 Oct 2009 17:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-6055</guid>
		<description>This tip is not working perfectly, I recommend instead, in order to clear the video, to use the visible property (with a Fade effect is terrible!). 

Moreover, use mx_internal stuff is not recommended since it can be remove for future versions of the framework.

--------------------------------------------------------
eBuildy, the web2.0 specialists!</description>
		<content:encoded><![CDATA[<p>This tip is not working perfectly, I recommend instead, in order to clear the video, to use the visible property (with a Fade effect is terrible!). </p>
<p>Moreover, use mx_internal stuff is not recommended since it can be remove for future versions of the framework.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
eBuildy, the web2.0 specialists!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vardan</title>
		<link>http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/comment-page-1/#comment-2284</link>
		<dc:creator>Vardan</dc:creator>
		<pubDate>Thu, 16 Apr 2009 14:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/#comment-2284</guid>
		<description>Hi Peter,

Sorry, some of my code did not appear properly because of the tags:

UploadVideo.as
public var videoName:String;
public var video:ByteArray;

videosOfStudents = ArrayCollection() // of UploadVideo objects
mx:List id=&quot;cntlMovie&quot; dataProvider=&quot;{modelLocator.videosOfStudents}&quot; width=&quot;300&quot;

mx:VideoDisplay id=&quot;cntlDisp&quot; source=&quot;{cntlMovie.selectedItem.videoName}&quot; width=&quot;100%&quot; height=&quot;100%&quot;

The output I get is:
(TypeError)#0
  errorID = 1009
  message = &quot;Error #1009: Cannot access a property or method of a null object reference.&quot;

Thanks again.


Vardan</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Sorry, some of my code did not appear properly because of the tags:</p>
<p>UploadVideo.as<br />
public var videoName:String;<br />
public var video:ByteArray;</p>
<p>videosOfStudents = ArrayCollection() // of UploadVideo objects<br />
mx:List id=&#8221;cntlMovie&#8221; dataProvider=&#8221;{modelLocator.videosOfStudents}&#8221; width=&#8221;300&#8243;</p>
<p>mx:VideoDisplay id=&#8221;cntlDisp&#8221; source=&#8221;{cntlMovie.selectedItem.videoName}&#8221; width=&#8221;100%&#8221; height=&#8221;100%&#8221;</p>
<p>The output I get is:<br />
(TypeError)#0<br />
  errorID = 1009<br />
  message = &#8220;Error #1009: Cannot access a property or method of a null object reference.&#8221;</p>
<p>Thanks again.</p>
<p>Vardan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

