Question
HTML5 canvas camera - control with code
I'm using the adobe help guide for the camera methods etc...
https://helpx.adobe.com/animate/user-guide.html/animate/using/working-with-camera-in-animate.ug.html
I'm trying to control the camera via code.
I now want to zoom in on certain words on the stage ie: to give emphasis and make things more dynamic.
I enclose the end snippet of code I am using. It doesn't zoom in.
function addPopup() {
//this.s1_b4.visible=false; -- WARNING - don't put stuff before declaring variables.
var Tania = new lib.popup_Tania();
Tania.x = 350;
Tania.y = 450;
exportRoot.addChild(Tania);
cameraZoom();
}
function cameraZoom() {
var cameraObj = AdobeAn.VirtualCamera.getCamera(exportRoot);
this.cameraObj.setPosition(100,100,100);
this.cameraObj.setZoom(200);
//this.cameraObj.zoomBy(100);
}
