开发者

Destroy camera in as3

开发者 https://www.devze.com 2023-03-14 10:53 出处:网络
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?

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 :)

0

精彩评论

暂无评论...
验证码 换一张
取 消