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 [email protected], "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: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of willburforce82
> Sent: Tuesday, August 08, 2006 11:54 AM
> To: [email protected]
> 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] <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: [email protected] <mailto:flexcoders%40yahoogroups.com>
> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of willburforce82
> > Sent: Tuesday, August 08, 2006 9:55 AM
> > To: [email protected] <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%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/