开发者

Destroy camera in as3

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜