Tuesday 15 February 2011

arrays - Available cameras in ActionScript 3 -


I know how to create a camera object in 3 you use the camera = camera.GetCamera (); What I am trying to do, prepares an array of wire from all the available cameras that are supported on the client computer, then the client has the choice to choose instead of using the default camera. How do I do this? This is what I have done so far: Thanks

  var cam: camera = camera.getCamera (); Cam.setMode (320,200,30); Cam.setQuality (0, 85); Cam.setKeyFrameInterval (18); Ns.attachCamera (Cam);    

You do not need to create that array - it's already there.

 for  (var i: int = 0; i & lt; camera; name; height; i ++) {trace (camera name [i]); }    

No comments:

Post a Comment