<?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: Actionscript 3 Webcam Configure</title>
	<atom:link href="http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/</link>
	<description>Advanced Flash and Actionscript 3 by Andrew Christensen</description>
	<lastBuildDate>Wed, 08 Feb 2012 21:08:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: raj</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-670</link>
		<dc:creator>raj</dc:creator>
		<pubDate>Wed, 28 Dec 2011 16:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-670</guid>
		<description>please camera choosing from list
script pls</description>
		<content:encoded><![CDATA[<p>please camera choosing from list<br />
script pls</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: red5</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-663</link>
		<dc:creator>red5</dc:creator>
		<pubDate>Sat, 17 Dec 2011 09:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-663</guid>
		<description>I have a red5 server and would also like to have this webcam function. Can someone please help me? Pay for the completion ...</description>
		<content:encoded><![CDATA[<p>I have a red5 server and would also like to have this webcam function. Can someone please help me? Pay for the completion &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M.USAMA</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-646</link>
		<dc:creator>M.USAMA</dc:creator>
		<pubDate>Tue, 22 Nov 2011 09:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-646</guid>
		<description>Can i get camera in 16:9 dimensions plz help</description>
		<content:encoded><![CDATA[<p>Can i get camera in 16:9 dimensions plz help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-626</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Sat, 01 Oct 2011 12:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-626</guid>
		<description>Hi. Your explanation is excellent!
I want to know how to preview 2 or more camera objects at the same time because I am creating a live video routing project at university.
Please help. Thanks.^^</description>
		<content:encoded><![CDATA[<p>Hi. Your explanation is excellent!<br />
I want to know how to preview 2 or more camera objects at the same time because I am creating a live video routing project at university.<br />
Please help. Thanks.^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Free Flash Banners</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-623</link>
		<dc:creator>Free Flash Banners</dc:creator>
		<pubDate>Fri, 23 Sep 2011 09:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-623</guid>
		<description>Nice tutorial. Thanks.</description>
		<content:encoded><![CDATA[<p>Nice tutorial. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janet</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-622</link>
		<dc:creator>janet</dc:creator>
		<pubDate>Fri, 16 Sep 2011 12:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-622</guid>
		<description>hi,

Thanks for remind me..:) erm...when i click the &quot;shotBtn&quot;....the new captured image appear to be much more smaller compare to the original webcam image, so, how am i going to make the size same as the original webcam image after click the  &quot;shotBtn&quot; ? what code should i add on?

below are the scripts:

var bandwidth:int = 0; 
var quality:int = 100; 
var camera:Camera = Camera.getCamera();
camera.setQuality(bandwidth, quality);
camera.setMode(800,600,15,true); 
var video:Video = new Video();

video.width = 800;
video.height = 600;
addChild(video);

video.attachCamera(camera);
addChild(video)

var imgBD:BitmapData;
var imgBitmap:Bitmap;

 
shotBtn.addEventListener(MouseEvent.CLICK, createSnapshot);
 
function createSnapshot(event:MouseEvent):void {
    imgBD = new BitmapData(video.width,video.height);
	imgBD.draw(video); 
	
    imgBitmap=new Bitmap(imgBD);
	
    addChild(imgBitmap);
}

removeBtn.addEventListener(MouseEvent.CLICK, removeSnapshot);
 
function removeSnapshot(event:MouseEvent):void {
    removeChild(imgBitmap);
}



thanks for your help^^</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>Thanks for remind me..:) erm&#8230;when i click the &#8220;shotBtn&#8221;&#8230;.the new captured image appear to be much more smaller compare to the original webcam image, so, how am i going to make the size same as the original webcam image after click the  &#8220;shotBtn&#8221; ? what code should i add on?</p>
<p>below are the scripts:</p>
<p>var bandwidth:int = 0;<br />
var quality:int = 100;<br />
var camera:Camera = Camera.getCamera();<br />
camera.setQuality(bandwidth, quality);<br />
camera.setMode(800,600,15,true);<br />
var video:Video = new Video();</p>
<p>video.width = 800;<br />
video.height = 600;<br />
addChild(video);</p>
<p>video.attachCamera(camera);<br />
addChild(video)</p>
<p>var imgBD:BitmapData;<br />
var imgBitmap:Bitmap;</p>
<p>shotBtn.addEventListener(MouseEvent.CLICK, createSnapshot);</p>
<p>function createSnapshot(event:MouseEvent):void {<br />
    imgBD = new BitmapData(video.width,video.height);<br />
	imgBD.draw(video); </p>
<p>    imgBitmap=new Bitmap(imgBD);</p>
<p>    addChild(imgBitmap);<br />
}</p>
<p>removeBtn.addEventListener(MouseEvent.CLICK, removeSnapshot);</p>
<p>function removeSnapshot(event:MouseEvent):void {<br />
    removeChild(imgBitmap);<br />
}</p>
<p>thanks for your help^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Supriya Tenany</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-621</link>
		<dc:creator>Supriya Tenany</dc:creator>
		<pubDate>Fri, 16 Sep 2011 05:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-621</guid>
		<description>Hi,
Wonderful explanation! It makes everything look so simple. What changes can be done if streaming is not required and the video should be recorded and saved at the client end? Also, can it be mixed with a background score as in a karaoke, so that instead of sound, video can be recorded?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Wonderful explanation! It makes everything look so simple. What changes can be done if streaming is not required and the video should be recorded and saved at the client end? Also, can it be mixed with a background score as in a karaoke, so that instead of sound, video can be recorded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Christensen</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-620</link>
		<dc:creator>Andrew Christensen</dc:creator>
		<pubDate>Thu, 15 Sep 2011 14:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-620</guid>
		<description>Janet,
By the looks of your code your setMode() method is setting the image to 320x240 

&lt;blockquote&gt;camera.setMode(320,240,15,true);&lt;/blockquote&gt;

Update that code and you should be good to go.</description>
		<content:encoded><![CDATA[<p>Janet,<br />
By the looks of your code your setMode() method is setting the image to 320&#215;240 </p>
<blockquote><p>camera.setMode(320,240,15,true);</p></blockquote>
<p>Update that code and you should be good to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janet</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-2/#comment-618</link>
		<dc:creator>janet</dc:creator>
		<pubDate>Thu, 15 Sep 2011 03:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-618</guid>
		<description>hi,
i am still new in flash as3..hope can get help from you :)
my problem is the webcam image is very small, how am i going to make it bigger(for example: 430*500)? 
i had change  *camera.setMode(430,500,15,true);* , but it does not change the size of the webcam image.

below are the script:

var bandwidth:int = 0; 
var quality:int = 100; 
var camera:Camera = Camera.getCamera();
camera.setQuality(bandwidth, quality);
camera.setMode(320,240,15,true); 
var video:Video = new Video();
video.attachCamera(camera);
addChild(video)

var imgBD:BitmapData;
var imgBitmap:Bitmap;

 
shotBtn.addEventListener(MouseEvent.CLICK, createSnapshot);
 
function createSnapshot(event:MouseEvent):void {
    imgBD = new BitmapData(video.width,video.height);
	imgBD.draw(video);  
    imgBitmap=new Bitmap(imgBD);
    addChild(imgBitmap);
}

removeBtn.addEventListener(MouseEvent.CLICK, removeSnapshot);
 
function removeSnapshot(event:MouseEvent):void {
    removeChild(imgBitmap);
}



thanks for your help, hope to get from you soon^^</description>
		<content:encoded><![CDATA[<p>hi,<br />
i am still new in flash as3..hope can get help from you <img src='http://blog.728media.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
my problem is the webcam image is very small, how am i going to make it bigger(for example: 430*500)?<br />
i had change  *camera.setMode(430,500,15,true);* , but it does not change the size of the webcam image.</p>
<p>below are the script:</p>
<p>var bandwidth:int = 0;<br />
var quality:int = 100;<br />
var camera:Camera = Camera.getCamera();<br />
camera.setQuality(bandwidth, quality);<br />
camera.setMode(320,240,15,true);<br />
var video:Video = new Video();<br />
video.attachCamera(camera);<br />
addChild(video)</p>
<p>var imgBD:BitmapData;<br />
var imgBitmap:Bitmap;</p>
<p>shotBtn.addEventListener(MouseEvent.CLICK, createSnapshot);</p>
<p>function createSnapshot(event:MouseEvent):void {<br />
    imgBD = new BitmapData(video.width,video.height);<br />
	imgBD.draw(video);<br />
    imgBitmap=new Bitmap(imgBD);<br />
    addChild(imgBitmap);<br />
}</p>
<p>removeBtn.addEventListener(MouseEvent.CLICK, removeSnapshot);</p>
<p>function removeSnapshot(event:MouseEvent):void {<br />
    removeChild(imgBitmap);<br />
}</p>
<p>thanks for your help, hope to get from you soon^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selvakumar</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-1/#comment-617</link>
		<dc:creator>Selvakumar</dc:creator>
		<pubDate>Wed, 14 Sep 2011 20:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-617</guid>
		<description>Thank you so much.. It was very helpful for us</description>
		<content:encoded><![CDATA[<p>Thank you so much.. It was very helpful for us</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: digdug</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-1/#comment-612</link>
		<dc:creator>digdug</dc:creator>
		<pubDate>Fri, 26 Aug 2011 08:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-612</guid>
		<description>Great information in the tutorial and in the comments.  I am trying to find out if it is possible to record a video inside Flash (not streaming to a server and not saving to hard drive).  If so, what format is the video in.. if the snapshot is bitmap I am guessing something not compressed.  If there are any code example of recording and playing back video out there that would help me a great deal.

Thanks!</description>
		<content:encoded><![CDATA[<p>Great information in the tutorial and in the comments.  I am trying to find out if it is possible to record a video inside Flash (not streaming to a server and not saving to hard drive).  If so, what format is the video in.. if the snapshot is bitmap I am guessing something not compressed.  If there are any code example of recording and playing back video out there that would help me a great deal.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaloba haron</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-1/#comment-594</link>
		<dc:creator>kaloba haron</dc:creator>
		<pubDate>Mon, 11 Jul 2011 17:51:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-594</guid>
		<description>can u give a much detail of how i can stream video from webcam to be viewed by people</description>
		<content:encoded><![CDATA[<p>can u give a much detail of how i can stream video from webcam to be viewed by people</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crooksy88</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-1/#comment-593</link>
		<dc:creator>crooksy88</dc:creator>
		<pubDate>Wed, 22 Jun 2011 06:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-593</guid>
		<description>Here&#039;s a working solution for taking larger than 320x240 photos.

//define class accessible variables
private var bm:Bitmap;		
private var bandwidth:int = 0;
private var quality:int = 100; 
private var camera:Camera = Camera.getCamera();
private var vidloader:Video = new Video();
private var rec:Sprite = new Sprite;


//method to set up camera

 private function onGetCamera(e:MouseEvent):void{  
//check for camera
//if (camera.getCamera() != null) {
vidloader.width = 640;
vidloader.height = 480;	

camera.setQuality(bandwidth, quality);
camera.setMode(640,480,10,true); // setMode(videoWidth, videoHeight, video fps, favor area)

//this matrix doubles the size and flips the preview so it&#039;s easier to position yourself
var ma:Matrix = new Matrix();
ma.a = -2;
ma.d = 2;
ma.tx = vidloader.width;

this.vidloader.transform.matrix = ma;

//attach camera to the video
vidloader.attachCamera(camera);

// add the video to a sprite which when rendered as bitmapdata in the next function, draws a higher def image
rec.addChild(vidloader);

//add video preview to the stage
addChild(rec);

}



public function actuallyCaptureTheShot():void{  

var loaderBMD:BitmapData = new BitmapData(640,480);
loaderBMD.draw(rec);

var originalBitmapData:BitmapData = loaderBMD;
var scaleFactor:Number=2;
var newWidth:Number=originalBitmapData.width*scaleFactor;
var newHeight:Number=originalBitmapData.height*scaleFactor;

var scaledBitmapData:BitmapData = new BitmapData(newWidth,newHeight,true,0x00000000);

scaledBitmapData.draw(originalBitmapData);

bm = new Bitmap(scaledBitmapData, &quot;auto&quot;, true);

//add the snapshot to the stage, or add it to an existing movieclip so you can move it around maybe!
addChild(bm);

}</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a working solution for taking larger than 320&#215;240 photos.</p>
<p>//define class accessible variables<br />
private var bm:Bitmap;<br />
private var bandwidth:int = 0;<br />
private var quality:int = 100;<br />
private var camera:Camera = Camera.getCamera();<br />
private var vidloader:Video = new Video();<br />
private var rec:Sprite = new Sprite;</p>
<p>//method to set up camera</p>
<p> private function onGetCamera(e:MouseEvent):void{<br />
//check for camera<br />
//if (camera.getCamera() != null) {<br />
vidloader.width = 640;<br />
vidloader.height = 480;	</p>
<p>camera.setQuality(bandwidth, quality);<br />
camera.setMode(640,480,10,true); // setMode(videoWidth, videoHeight, video fps, favor area)</p>
<p>//this matrix doubles the size and flips the preview so it&#8217;s easier to position yourself<br />
var ma:Matrix = new Matrix();<br />
ma.a = -2;<br />
ma.d = 2;<br />
ma.tx = vidloader.width;</p>
<p>this.vidloader.transform.matrix = ma;</p>
<p>//attach camera to the video<br />
vidloader.attachCamera(camera);</p>
<p>// add the video to a sprite which when rendered as bitmapdata in the next function, draws a higher def image<br />
rec.addChild(vidloader);</p>
<p>//add video preview to the stage<br />
addChild(rec);</p>
<p>}</p>
<p>public function actuallyCaptureTheShot():void{  </p>
<p>var loaderBMD:BitmapData = new BitmapData(640,480);<br />
loaderBMD.draw(rec);</p>
<p>var originalBitmapData:BitmapData = loaderBMD;<br />
var scaleFactor:Number=2;<br />
var newWidth:Number=originalBitmapData.width*scaleFactor;<br />
var newHeight:Number=originalBitmapData.height*scaleFactor;</p>
<p>var scaledBitmapData:BitmapData = new BitmapData(newWidth,newHeight,true,0&#215;00000000);</p>
<p>scaledBitmapData.draw(originalBitmapData);</p>
<p>bm = new Bitmap(scaledBitmapData, &#8220;auto&#8221;, true);</p>
<p>//add the snapshot to the stage, or add it to an existing movieclip so you can move it around maybe!<br />
addChild(bm);</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Configurando uma webcam em Actionscript 3 &#124; Dalaz.com.br</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-1/#comment-591</link>
		<dc:creator>Configurando uma webcam em Actionscript 3 &#124; Dalaz.com.br</dc:creator>
		<pubDate>Mon, 13 Jun 2011 10:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-591</guid>
		<description>[...] Texto original de Andrew Christensen, disponível em http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Texto original de Andrew Christensen, disponível em <a href="http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/" rel="nofollow">http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Configurando uma webcam em Actionscript 3 &#124; Dalaz</title>
		<link>http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/comment-page-1/#comment-589</link>
		<dc:creator>Configurando uma webcam em Actionscript 3 &#124; Dalaz</dc:creator>
		<pubDate>Thu, 09 Jun 2011 03:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.728media.com/?p=200#comment-589</guid>
		<description>[...] Texto original de Andrew Christensen, disponível em http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Texto original de Andrew Christensen, disponível em <a href="http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/" rel="nofollow">http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

