I am using the Camera on Flash, but when I finish to use, now can I "destroy" the camera object for improve the applica开发者_StackOverflowtion performance?
private var camera_atual:Camera = Camera.getCamera();
private var video_camera:Video = new Video(820, 546);
camera_atual.setQuality(0,100);
camera_atual.setMode(550,480,30,true);
video_camera.attachCamera(camera_atual);
this.palco_mc.addChild(video_camera);
See Video.attachCamera() - "To drop the connection to the Video object, pass null."
The camera itself should be destroyed manually :)
精彩评论