[flexcoders] Re: Camera.get([index]); useing mutiple cameras
Thank to both Andy and Jerermy I've gone through your replies and the closest i've got so far is:- var arr:Array = Camera.names; trace(arr[0]); trace(arr[1]); \\the output screen at this point returned the camera names which i \\ added to the following lines. localCamera1 =Camera.get( arr[Digital Camera]); localCamera2 =Camera.get( arr[Dual-Mode DSC (Video Camera)] ); localVideo.attachVideo(localCamera1); localVideo2.attachVideo(localCamera2); This attaches the default camera to both videos again but now i have the camera names returned as well, the other thing that is confusing me is that you have both said to use Camera.getCamera(); instead of Camera.get(); but it fails with the following error:- **Error** Symbol=videoFeed, layer=Layer 1, frame=1:Line 4: There is no method with the name 'getCamera'. localCamera1 =Camera.getCamera( arr[Digital Camera] ); **Error** Symbol=videoFeed, layer=Layer 1, frame=1:Line 5: There is no method with the name 'getCamera'. localCamera2 =Camera.getCamera( arr[Dual-Mode DSC (Video Camera)] ); Total ActionScript Errors: 2 Reported Errors: 2 And the cameras fails to load. Finally you mentioned version 9.0.16 admittedly i've only just upgraded to version 9 where can i get the updates? willbur --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: Take a look at some of the later posts on this thread. There is a workaround for camera.getCamera. _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of willburforce82 Sent: Tuesday, August 08, 2006 11:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Camera.get([index]); useing mutiple cameras Thanks for you swift response Andy Unfortunatly i don't get any video feed from the cameras that way. When i use attachVideo both video object feed the default camera regardless of my index reference but with attachCamera i get nothing. :( My problem seems to be in the seem to be in defining which camera localcamera1 is using and which one localcamera2 is using, as they both seem to use the default camera specified in the System.showSettings(3)panel. willbur --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Andrew Trice andrew.trice@ wrote: I am assuming that localVideo and localVideo2 are instantiations of the Video class. Instead of using attachVideo, try using: localVideo.attachCamera(localCamera1); localVideo2.attachCamera(localCamera2); You shouldn't need the play() function. Here is an example using the camera on my blog (only uses one camera though): http://www.cynergysystems.com/blogs/page/andrewtrice?entry=capturing_sti http://www.cynergysystems.com/blogs/page/andrewtrice?entry=capturing_st i ll_images_from_a Hope that helps. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice http://www.cynergysystems.com/blogs/page/andrewtrice Email: andrew.trice@ Office: 866-CYNERGY From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of willburforce82 Sent: Tuesday, August 08, 2006 9:55 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Camera.get([index]); useing mutiple cameras Hi all, i'm new to action script, and working on a project that involves using multiple cameras in a single .swf i seem to be able to retreve the Camera.names and Camera.names.length which give me the names and number of cameras attached to my local computer but i can't seem to specify which Camera i want when i use Camera.get() to attach the video to each camera i know i have to use Camera.get(index) but i don't know what i'm doing wrong. this.cameranameslength = Camera.names.length; this.cameraNames.text = Camera.names; //this retrieves the names and number of cameras localCamera1 = Camera.get(index,[0]); localCamera2 = Camera.get(index,[1]); localVideo.attachVideo(localCamera1); localVideo2.attachVideo(localCamera2); play() // i can't specify each camera to a specific video feed. i'm getting a bit lost now can anyone help. willburforce -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com
[flexcoders] Re: Camera.get([index]); useing mutiple cameras
Dear jeremy i think your right about establishing an array first, but i keep getting problems with this .getCamera (here is no method with the name 'getCamera'.) I can't get it to work but everyone keeps telling me it's the correct code but it's not working for me? --- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote: to willburforce: I ran into this problem several days ago, trying something like this var arr:Array = Camerag.names; Camera.getCamera( arr[1] ); note it's getCamera() not get(). as the menu says, the sigature of the Camera.getCamera() is public static function getCamera( name:String =null ):Camera but it failed me everytime when I try to assign a camera name to the method (I have four webcams attached to the box) Interestingly, the manual seems to suggest not passing any name to the method, instead, let user choose which camera to use via setting panel (which is not an option in the current video conference project). to Andrew: In your example, you were using getCamera() with no parameter passed in, could you please confirm if you can assign different names to it ? thanks. Jeremy. On 8/8/06, Andrew Trice [EMAIL PROTECTED] wrote: I am assuming that localVideo and localVideo2 are instantiations of the Video class. Instead of using attachVideo, try using: localVideo.attachCamera(localCamera1); localVideo2.attachCamera(localCamera2); You shouldn't need the play() function. Here is an example using the camera on my blog (only uses one camera though): http://www.cynergysystems.com/blogs/page/andrewtrice?entry=capturing_still_images_from_a Hope that helps. -Andy _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *willburforce82 *Sent:* Tuesday, August 08, 2006 9:55 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Camera.get([index]); useing mutiple cameras Hi all, i'm new to action script, and working on a project that involves using multiple cameras in a single .swf i seem to be able to retreve the Camera.names and Camera.names.length which give me the names and number of cameras attached to my local computer but i can't seem to specify which Camera i want when i use Camera.get() to attach the video to each camera i know i have to use Camera.get(index) but i don't know what i'm doing wrong. this.cameranameslength = Camera.names.length; this.cameraNames.text = Camera.names; //this retrieves the names and number of cameras localCamera1 = Camera.get(index,[0]); localCamera2 = Camera.get(index,[1]); localVideo.attachVideo(localCamera1); localVideo2.attachVideo(localCamera2); play() // i can't specify each camera to a specific video feed. i'm getting a bit lost now can anyone help. willburforce -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Camera.get([index]); useing mutiple cameras
Thanks Again both Andy and Jeremy, i'm still not able to define between the two cameras on my computer, i've added traces to help identify whats going wrong, but this is the closest i've got:- var arr:Array = Camera.names; trace(arr[1]); trace(arr[0]); //these traces return the "Digital Camera" and "Dual-Mode DSC (Video //Camera)" used in the following lines. var localCamera1:Camera = Camera.get(arr["Digital Camera"]); var localCamera2:Camera = Camera.get(arr["Dual-Mode DSC (Video Camera)"]); trace(localCamera1); trace(localCamera2); //these traces both return [object Object] i don't know what this means but // it might give you a clue. localVideo.attachVideo(localCamera1); localVideo2.attachVideo(localCamera2); trace(localVideo); trace(localVideo2); //these traces return "_level0.localVideo.localVideo" and //"_level0.localVideo.localVideo2" I know you both have sujested using Camera.getCamera() instead of camera.get() but i keep getting a there is no method name called .getCamera error and the video feeds don't work where as with camera.get() both feeds use the default camera. Also i noticed you mention version 9.0.16 i've only just upgraded to version 9 but where can i get the 9.0.16 version if i need it. What do you think?? regards willburforce --- In flexcoders@yahoogroups.com, "Jeremy Lu" [EMAIL PROTECTED] wrote: Thanks Andrew, this is a pretty cool hack, will try it and see if it works for me too. Jeremy. On 8/9/06, Andrew Trice [EMAIL PROTECTED] wrote: I only have one camera, so I never tried it. I've got flash player 9.0.16, but it looks like the error is still happening (although I found a workaround). I changed my code to: var arr: Array = Camera.names; trace(arr[0]); camera = Camera.getCamera(arr[0]); trace(Camera.getCamera(arr[0].toString())); and it returned null every time. I also started playing with it and did this trace(Camera.getCamera("0")); camera = Camera.getCamera("0"); and it gave a valid reference to the camera. Try using the string representation of the camera index, instead of the camera name. Looks like this is still a bug in the player, but this could be a hack-ish workaround for it. _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Jeremy Lu *Sent:* Tuesday, August 08, 2006 11:52 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Camera.get([index]); useing mutiple cameras to willburforce: I ran into this problem several days ago, trying something like this var arr:Array = Camerag.names; Camera.getCamera( arr[1] ); note it's "getCamera()" not "get()". as the menu says, the sigature of the Camera.getCamera() is public static function getCamera( name:String =null ):Camera but it failed me everytime when I try to assign a camera name to the method (I have four webcams attached to the box) Interestingly, the manual seems to suggest not passing any name to the method, instead, let user choose which camera to use via setting panel (which is not an option in the current video conference project). to Andrew: In your example, you were using "getCamera()" with no parameter passed in, could you please confirm if you can assign different names to it ? thanks.Jeremy. On 8/8/06, *Andrew Trice* [EMAIL PROTECTED] wrote: I am assuming that localVideo and localVideo2 are instantiations of the Video class. Instead of using attachVideo, try using: localVideo.attachCamera(localCamera1); localVideo2.attachCamera(localCamera2); You shouldn't need the play() function. Here is an example using the camera on my blog (only uses one camera though):http://www.cynergysystems.com/blogs/page/andrewtrice?entry=capturing_still_images_from_a Hope that helps. -Andy __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Camera.get([index]); useing mutiple cameras
What version of Flex are you using? In Flex 2, it is Camera.getCamera(). All of the help we have provided is for Flex 2. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of willburforce82 Sent: Wednesday, August 09, 2006 5:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Camera.get([index]); useing mutiple cameras Dear jeremy i think your right about establishing an array first, but i keep getting problems with this .getCamera (here is no method with the name 'getCamera'.) I can't get it to work but everyone keeps telling me it's the correct code but it's not working for me? --- In [EMAIL PROTECTED]ups.com, Jeremy Lu [EMAIL PROTECTED] wrote: to willburforce: I ran into this problem several days ago, trying something like this var arr:Array = Camerag.names; Camera.getCamera( arr[1] ); note it's getCamera() not get(). as the menu says, the sigature of the Camera.getCamera() is public static function getCamera( name:String =null ):Camera but it failed me everytime when I try to assign a camera name to the method (I have four webcams attached to the box) Interestingly, the manual seems to suggest not passing any name to the method, instead, let user choose which camera to use via setting panel (which is not an option in the current video conference project). to Andrew: In your example, you were using getCamera() with no parameter passed in, could you please confirm if you can assign different names to it ? thanks. Jeremy. On 8/8/06, Andrew Trice andrew.trice@... wrote: I am assuming that localVideo and localVideo2 are instantiations of the Video class. Instead of using attachVideo, try using: localVideo.attachCamera(localCamera1); localVideo2.attachCamera(localCamera2); You shouldn't need the play() function. Here is an example using the camera on my blog (only uses one camera though): http://www.cynergysystems.com/blogs/page/andrewtrice?entry=capturing_still_images_from_a Hope that helps. -Andy _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: andrew.trice@... Office: 866-CYNERGY -- *From:* [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] *On Behalf Of *willburforce82 *Sent:* Tuesday, August 08, 2006 9:55 AM *To:* [EMAIL PROTECTED]ups.com *Subject:* [flexcoders] Camera.get([index]); useing mutiple cameras Hi all, i'm new to action script, and working on a project that involves using multiple cameras in a single .swf i seem to be able to retreve the Camera.names and Camera.names.length which give me the names and number of cameras attached to my local computer but i can't seem to specify which Camera i want when i use Camera.get() to attach the video to each camera i know i have to use Camera.get(index) but i don't know what i'm doing wrong. this.cameranameslength = Camera.names.length; this.cameraNames.text = Camera.names; //this retrieves the names and number of cameras localCamera1 = Camera.get(index,[0]); localCamera2 = Camera.get(index,[1]); localVideo.attachVideo(localCamera1); localVideo2.attachVideo(localCamera2); play() // i can't specify each camera to a specific video feed. i'm getting a bit lost now can anyone help. willburforce __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Camera.get([index]); useing mutiple cameras
You can get flash player 9.0.16 from: http://www.adobe.com/support/flashplayer/downloads.html Make sure you get the debug version. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of willburforce82 Sent: Wednesday, August 09, 2006 8:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Camera.get([index]); useing mutiple cameras Thanks Again both Andy and Jeremy, i'm still not able to define between the two cameras on my computer, i've added traces to help identify whats going wrong, but this is the closest i've got:- var arr:Array = Camera.names; trace(arr[1]); trace(arr[0]); //these traces return the Digital Camera and Dual-Mode DSC (Video //Camera) used in the following lines. var localCamera1:Camera = Camera.get(arr[Digital Camera]); var localCamera2:Camera = Camera.get(arr[Dual-Mode DSC (Video Camera)]); trace(localCamera1); trace(localCamera2); //these traces both return [object Object] i don't know what this means but // it might give you a clue. localVideo.attachVideo(localCamera1); localVideo2.attachVideo(localCamera2); trace(localVideo); trace(localVideo2); //these traces return _level0.localVideo.localVideo and //_level0.localVideo.localVideo2 I know you both have sujested using Camera.getCamera() instead of camera.get() but i keep getting a there is no method name called .getCamera error and the video feeds don't work where as with camera.get() both feeds use the default camera. Also i noticed you mention version 9.0.16 i've only just upgraded to version 9 but where can i get the 9.0.16 version if i need it. What do you think?? regards willburforce --- In [EMAIL PROTECTED]ups.com, Jeremy Lu [EMAIL PROTECTED] wrote: Thanks Andrew, this is a pretty cool hack, will try it and see if it works for me too. Jeremy. On 8/9/06, Andrew Trice andrew.trice@... wrote: I only have one camera, so I never tried it. I've got flash player 9.0.16, but it looks like the error is still happening (although I found a workaround). I changed my code to: var arr: Array = Camera.names; trace(arr[0]); camera = Camera.getCamera(arr[0]); trace(Camera.getCamera(arr[0].toString())); and it returned null every time. I also started playing with it and did this trace(Camera.getCamera(0)); camera = Camera.getCamera(0); and it gave a valid reference to the camera. Try using the string representation of the camera index, instead of the camera name. Looks like this is still a bug in the player, but this could be a hack-ish workaround for it. _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: andrew.trice@... Office: 866-CYNERGY -- *From:* [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] *On Behalf Of *Jeremy Lu *Sent:* Tuesday, August 08, 2006 11:52 AM *To:* [EMAIL PROTECTED]ups.com *Subject:* Re: [flexcoders] Camera.get([index]); useing mutiple cameras to willburforce: I ran into this problem several days ago, trying something like this var arr:Array = Camerag.names; Camera.getCamera( arr[1] ); note it's getCamera() not get(). as the menu says, the sigature of the Camera.getCamera() is public static function getCamera( name:String =null ):Camera but it failed me everytime when I try to assign a camera name to the method (I have four webcams attached to the box) Interestingly, the manual seems to suggest not passing any name to the method, instead, let user choose which camera to use via setting panel (which is not an option in the current video conference project). to Andrew: In your example, you were using getCamera() with no parameter passed in, could you please confirm if you can assign different names to it ? thanks. Jeremy. On 8/8/06, *Andrew Trice* andrew.trice@... wrote: I am assuming that localVideo and localVideo2 are instantiations of the Video class. Instead of using attachVideo, try using: localVideo.attachCamera(localCamera1); localVideo2.attachCamera(localCamera2); You shouldn't need the play() function. Here is an example using the camera on my blog (only uses one camera though): http://www.cynergysystems.com/blogs/page/andrewtrice?entry=capturing_still_images_from_a Hope that helps. -Andy __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
[flexcoders] Re: Camera.get([index]); useing mutiple cameras
Thanks for you swift response Andy Unfortunatly i don't get any video feed from the cameras that way. When i use attachVideo both video object feed the default camera regardless of my index reference but with attachCamera i get nothing. :( My problem seems to be in the seem to be in defining which camera localcamera1 is using and which one localcamera2 is using, as they both seem to use the default camera specified in the System.showSettings(3)panel. willbur --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: I am assuming that localVideo and localVideo2 are instantiations of the Video class. Instead of using attachVideo, try using: localVideo.attachCamera(localCamera1); localVideo2.attachCamera(localCamera2); You shouldn't need the play() function. Here is an example using the camera on my blog (only uses one camera though): http://www.cynergysystems.com/blogs/page/andrewtrice?entry=capturing_sti ll_images_from_a Hope that helps. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of willburforce82 Sent: Tuesday, August 08, 2006 9:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Camera.get([index]); useing mutiple cameras Hi all, i'm new to action script, and working on a project that involves using multiple cameras in a single .swf i seem to be able to retreve the Camera.names and Camera.names.length which give me the names and number of cameras attached to my local computer but i can't seem to specify which Camera i want when i use Camera.get() to attach the video to each camera i know i have to use Camera.get(index) but i don't know what i'm doing wrong. this.cameranameslength = Camera.names.length; this.cameraNames.text = Camera.names; //this retrieves the names and number of cameras localCamera1 = Camera.get(index,[0]); localCamera2 = Camera.get(index,[1]); localVideo.attachVideo(localCamera1); localVideo2.attachVideo(localCamera2); play() // i can't specify each camera to a specific video feed. i'm getting a bit lost now can anyone help. willburforce -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Camera.get([index]); useing mutiple cameras
Take a look at some of the later posts on this thread. There is a workaround for camera.getCamera. _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of willburforce82 Sent: Tuesday, August 08, 2006 11:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Camera.get([index]); useing mutiple cameras Thanks for you swift response Andy Unfortunatly i don't get any video feed from the cameras that way. When i use attachVideo both video object feed the default camera regardless of my index reference but with attachCamera i get nothing. :( My problem seems to be in the seem to be in defining which camera localcamera1 is using and which one localcamera2 is using, as they both seem to use the default camera specified in the System.showSettings(3)panel. willbur --- In [EMAIL PROTECTED]ups.com, Andrew Trice andrew.trice@... wrote: I am assuming that localVideo and localVideo2 are instantiations of the Video class. Instead of using attachVideo, try using: localVideo.attachCamera(localCamera1); localVideo2.attachCamera(localCamera2); You shouldn't need the play() function. Here is an example using the camera on my blog (only uses one camera though): http://www.cynergysystems.com/blogs/page/andrewtrice?entry=capturing_sti ll_images_from_a Hope that helps. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: andrew.trice@... Office: 866-CYNERGY From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of willburforce82 Sent: Tuesday, August 08, 2006 9:55 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Camera.get([index]); useing mutiple cameras Hi all, i'm new to action script, and working on a project that involves using multiple cameras in a single .swf i seem to be able to retreve the Camera.names and Camera.names.length which give me the names and number of cameras attached to my local computer but i can't seem to specify which Camera i want when i use Camera.get() to attach the video to each camera i know i have to use Camera.get(index) but i don't know what i'm doing wrong. this.cameranameslength = Camera.names.length; this.cameraNames.text = Camera.names; //this retrieves the names and number of cameras localCamera1 = Camera.get(index,[0]); localCamera2 = Camera.get(index,[1]); localVideo.attachVideo(localCamera1); localVideo2.attachVideo(localCamera2); play() // i can't specify each camera to a specific video feed. i'm getting a bit lost now can anyone help. willburforce __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___